DialogWeb Help:  The SORT Command


Example: Sort all items in set S1 by publication year in descending order.
Command: sort s1/all/py,d

The SORT command lets you rearrange the order of the records in a set. Sets that are not sorted display or print in descending order by record accession numbers. The record most recently added to a database has the highest accession number and is displayed or printed first. When you SORT a set, you specify field codes that are used to rearrange the records. The resulting set contains records that are arranged alphabetically or numerically according to the field(s) specified. You can specify that records be sorted in descending order by appending a D to the SORT command, as in the example above.

You can sort OneSearch sets only by publication year (py) or publication date (pd). If you want to sort a OneSearch set using other fields, you must specify FROM and a specific file number, for example, sort s1/all/au from 470.

Note: To insure that the entire set is sorted, the word ALL must follow the set number.