The SORT command is used to sort information on a line by line basis in
ascending or descending order.  The command is very powerful when combined
with other DOS commands.  The command format is as follows:

      SORT [/R][/+n]

Information is read from the standard input device, sorted and written to the
standard output device.  The concepts of standard input and output and its
redirection are explained in the help files REDIRECT and DEVICES.  You should
have some understanding of these concepts to use the SORT command.

The maximum file size that can be sorted is 63 K bytes in length.

The following options are available:

/R   - Reverse the sort order to descending.  In this case "Z" comes before
       "A" and "9" comes before "0".

/+n  - The "n" value is an integer column number to start the sort of each
       line on.  All information on the line preceding this column is ignored.


Some examples are shown on the next page:
SORT <NUMBERS.TXT  - Sort the file NUMBERS.TXT starting at the first column and
                     output the results to the console.

SORT <NAMES >PRN  - Sort the NAMES file starting at the first column and output
                    the results to the printer.

The SORT function can also be combined with other commands to be really
powerful (see the help file PIPING for details about piping output from one
command to the input of the next command on the command line).

DIR |FIND " HLP" |SORT/R >HELPLIST
  - This command takes the output from the DIR command and uses the FIND
    command to locate all the lines containing " HLP".  These lines are sent
    to the SORT command which sorts all the lines in descending order starting
    at the first column (the filename).  The result is written to the file
    HELPLIST in the current directory.
AS/P  - Restore all the files with a .BAS extension from the
                