NEW-SORT-LIST

Sorts the list previously saved by NEW-SAVE-LIST.

Syntax

NEW-SORT-LIST file-specifier {item-list} {(options}

Syntax Elements

file-specifier specifies a file as defined in Conventions.

item-list is a list of one or more item-ids or an asterisk (*) for all items, or can be omitted if provided by an active list from a preceding list-generating command.

Options

n See option M.

C Counts the number of identical attribute values, appending to the value the count, if greater than one, preceded by a subvalue mark. Only active with option U.

M Discards unique entries in list. If n not specified, keeps one copy of entries contained more than once. If n is specified, keeps one copy of entries contained n or more times. Gives the intersection of merged lists.

N Inverts the M option so as to keep values that occur only once in a list. Relevant only with the M option. If the list was created by merging two or more lists, this option gives the symmetric difference.

R Sorts the list in a right-aligned ascending order.

U Removes multiple cases of a value. If the list was created by merging two or more lists, this option gives the union of the lists.

Example

:SELECT MD WITH 2 = "35"
29 Items selected.
>NEW-SAVE-LIST INFOFILE ENGLISH-VERBS
[241] 'INFOFILE ENGLISH-VERBS'  Cataloged.
:NEW-SORT-LIST INFOFILE ENGLISH-VERBS

Go to top button