SORT DIRECTION (SET)
Name:
Type:
Purpose:
Specify whether sorts performed by SORT and SORTC generate
ascending or descending sorts.
Syntax:
SET SORT DIRECTION <value>
where <value> is ASCENDING or DESCENDING.
Examples:
SET SORT DIRECTION ASCENDING
SET SORT DIRECTION DESCENDING
Default:
The default is ASCENDING.
Synonyms:
Related Commands:
|
SORT
|
= Sort an array of numbers.
|
|
SORTC
|
= Sort an array of numbers and carry other arrays.
|
Applications:
Implementation Date:
Program:
LET Y = NORMAL RANDOM NUMBERS FOR I = 1 1 100
LET Y2 = SORT Y
SET SORT DIRECTION DESCENDING
LET Y3 = SORT Y
SET WRITE DECIMALS 3
PRINT Y Y2 Y3
Date created: 6/5/2001
Last updated: 4/4/2003
Please email comments on this WWW page to
alan.heckert@nist.gov.