TEST.TXTAssuming TEST.TXT consists of a list of names, this command sorts
the file alphabetically and displays the results on the screen.
The less-than sign instructs SORT to take its input from the file
instead of from the keyboard.
SORT /+20 TEST.TXTAssuming TEST.TXT consists of a list of names as well as phone
numbers that begin on column 20, this command sorts the list by
phone number order.
DIR|SORT
PRN:
prints a directory listing in alphabetical order.
NOTE
You can redirect the output of the SORT command from
standard output (the screen) by using redirection or piping.
Likewise, you can instruct SORT to take its input from other than
the standard input (the keyboard). The maximum size of a file to
be sorted is 63K.
The SORT command sorts characters according to their binary
values, except that lowercase letters are equal to uppercase
letters =a) and characters above 127 are collated according to
the rules of the currently selected country code.
------------------------------------------------------------------
[For related topics, press R]
SEE ALSO
FIND Command
MORE Command