Command: sortid

Syntax

sortid <ident>

Description

Sort the contents of an identifier array.

Parameters

Switches

Examples

Sort a string array ss in ascending order.

string ss[] = <'Albania','Detroit','Chard','Botulism'>
sortid ss

Sort a string array ss into descending order, removing empty elements. A numeric array ord will be created and will contain the values: 2,4,5,1.

string ss[] = <'A', 'D', '', 'C', 'B'>
sortid ss,-d,-z,-on=ord

See Also

Commands:

reorder, reverse

Functions:

order