beautypg.com

S o r t – Avery Dennison 6035 Programmer Manual Rev.A 7/98 User Manual

Page 166

background image

3-108 ROM-DOS 6.22 User Manual

7/9/98

S O R T

External

Purpose

Sorts a text file and displays the output to the standard device.

Syntax

SORT [/options] [filename]

Remarks

SORT normally starts its comparisons at the first character in a line.

The input to SORT may come from a file or it may be piped in from
another filter or a DOS command.

Options

/+n causes SORT to begin its alphabetical sorting starting at the n

th

position in the string.

/r causes SORT to sort in the reverse alphabetical order.

Examples

SORT NAMES.LST

Sorts the file NAMES.LST and displays the output to the screen.

DIR | SORT /+14 | MORE

Produces a directory and then sorts the directory by file size (the file
size in a directory display starts on the 14th position each line or
string). The output display is shown one screen at a time by directing
the output from SORT into the display utility MORE.