StructSort()
Returns an array of all the keys, ordered by the sort criteria of the values in the structure
Usage
ARRAY = StructSort(
struct,
type,
direction,
keypath
)
Argument | Summary |
---|---|
struct | struct1 |
type | type - ('numeric', 'text' or 'textnocase') [optional] |
direction | direction - ('desc' or 'asc') [optional] |
keypath | top level key path [optional] |
Calling
Supports named-parameter calling allowing you to use the function like:
StructSort( struct=?, type=?, direction=?, keypath=? );
Supports passing parameters as a structure using ArgumentCollection:
StructSort( ArgumentCollection={ struct : ?, type : ?, direction : ?, keypath : ? } );