SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 1 Vol 2

SORT DIRECTION (SET)

Name:
    SORT DIRECTION (SET)
Type:
    Set Subcommand
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:
    None
Related Commands:
    SORT = Sort an array of numbers.
    SORTC = Sort an array of numbers and carry other arrays.
Applications:
    Sorting
Implementation Date:
    2000/1
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

Privacy Policy/Security Notice
Disclaimer | FOIA

NIST is an agency of the U.S. Commerce Department.

Date created: 06/05/2001
Last updated: 11/04/2015

Please email comments on this WWW page to alan.heckert@nist.gov.