Skip to main content

About Sort File Dialog

The text box following the COMMAND label is used to enter the sort commands.

Available commands:

   'sort' sort file in specified order

   'reset' reset file to its original unsorted state

Reset command format:

   reset

Sort command format:

   sort lowcol,endcol,order

   where:

      lowcol = The low (start) position in the record

      endcol = The end position (last) in the record

      order = Sorting order: 'a' for ascending, 'd' for descending

Multiple sort key can be provided. Sort keys are separated with one or more spaces or with a semicolon (;).

Each sort key can be enclosed in parenthesis.

For example, the following are valid sort keys:

      sort 1,10,a 20,22,d

      sort 1,10,a;20,22,d

      sort (1,10,a) 29,35a

      sort (1,10,a);29,35a

*End of help document*