SORT.LIST

SORT.LIST

Top  Previous  Next

 

The SORT.LIST command sorts a saved select list.

 

 

Format

 

SORT.LIST src.list {TO tgt.list} {sort.rule}

 

where

 

src.listis the name of a previously saved select list in the $SAVEDLISTS file.

 

tgt.listis the name of the new sorted list to be created in the $SAVEDLISTS file. If omitted, src.list is replaced.

 

sort.ruleidentifies sorting sequence. If omitted, an ascending left aligned sort is used.

 

 

The SORT.LIST command sorts a previously saved select list, either creating a new list or replacing the original.

 

The sort.rule is formed from the following single letter elements:

ASort in ascending order (default)
DSort in descending order
LSort as left aligned values (default)
RSort as right aligned values
NIgnore null elements
UReturn unique items. Multiple occurrences of an item are replaced by just one item.

Invalid or conflicting sort.rule elements are ignored.

 

 

Example

 

SORT.LIST INVENTORY DL

 

This example sorts the list name INVENTORY into descending left aligned sequence, replacing the original list with the result.

 

 

See also:

COPY.LIST, DELETE.LIST, EDIT.LIST, FORM.LIST GET.LIST