[table of contents for nonframes version]
 
 

SORT

Description | Command Line | Command Guidelines | Results | Example | Limits | STN Assistance


Description

The SORT command is used to rearrange the records in an answer set(s) based on alphabetic or numeric order of specified data fields.


Command Line

To use the SORT command, follow this sample format:
 

=>

SORT

L-number

SORT field code SORT direction

answer numbers
   

1

2

3

4


Command Guidelines

Use the guidelines below to enter command line information:

  Note: To use SORT, you must be in the file(s) in which the answer set(s) was created.


Results

Results obtained with SORT are placed in a new L-number answer set.

To display answers from SORT, use the DISPLAY command.


Example

The following example shows use of SORT to rearrange the results in answer set L1 in ascending order by author (AU) and descending order by publication year (PY).

  Note: When multiple SORT fields are specified in the SORT command line, answers are rearranged based on terms in the first field specified. If some of the answers are equivalent based on the first SORT, this group of answers is further SORTed based on terms in the second field specified, and so forth.


Limits

30,000 answers can be SORTed.


STN Assistance

If you enter just the SORT command, STN prompts for:

  • An answer set L-number
  • Answer numbers
  • SORT fields and SORT direction

If you are unsure how to answer an STN prompt, type a question mark (?) and STN provides more details.

For more information on the SORT command, type HELP SORT.


[table of contents for nonframes version]


CAS Home| About STN

This set of html files is also available at the web site of FIZ-Karlsruhe, which operates the STN Service Center in Europe.