sort Command

The sort command generates sorted and formatted output of selected items and attributes from a specified file. The output produced by sort is identical to the output produced by list when the by modifier is specified. The default sort sequence can be altered by using the ms processing code (see ms (Mask Alter Sort) Processing Code for more information.

Syntax

sort file.reference {item.list} {selection.criteria} {sort.criteria} {modifiers} {output.specification} {print.limiters} {(options)}

Example(s)

Prints a list of entity items sorted by company and name, whose name starts with TIGER. The company and name are printed, and the entity item-ID is not printed.

sort entity by company by name with name "TIGER]" company name id-supp (p

See Also

by Modifier

by-dsnd Modifier

by-exp Modifier

by-exp-dsnd Modifier

Commands

Item List

list Command

Modifiers

ms (Mask Alter Sort) Processing Code

Options

Selection Criteria

set-compat Command

wsort Command