" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#008000" VLINK="004000" ALINK="#00C000">

                             SORT COMMAND

Purpose:  Reads data from the standard input device, sorts them
          alphabetically and sends this data to the standard output device.

Syntax:   [d:] [path] SORT [/R] [/+n]

Type:     External command

Parameters:

[d:] [path] before the command defines the drive and the path to the SORT
            command.
/R          reverses the sort order. That is, sorts from Z to A.
/+n         is the number of the column, from which the sorting should begin
            (the whole number). If you do not specify this parameter, the
            SORT command will begin sorting from the first column. The size
            of the file to be sorted should not exceed 63K.

     The input filename must differ from the output one.

Notes:
1. Uppercase letters "a-z" are identical to lowercase ones "A-Z".
2. Characters above ASCII 127 are sorted depending on information
   specified by the COUNTRY command.

Examples:

1.    A>sort /r <unsort.txt>sort.txt

reads the UNSORT.TXT file, sorts it in reversed order and sends
it to the output device under the name SORT.TXT.

2.     A>dir | sort /+14

In this example the output data of the DIR command is the input data of the
SORT command. After the sorting the listing of the directory takes place
starting with column 14 (it contains the file size). The output file of the
SORT command is transferred to the standard output device.