Returns a sorted array of the top level keys in a structure. Sorts using alphabetic or numeric sorting, and can sort based on the values of any structure element.

struct.sort( [ sortType [, sortOrder [, pathToSubElement ] ] ] )

Returns: Array

Argument Description
string, optional

define one of the following: - numeric: sorts numbers - text: sorts text alphabetically, taking case into account (case sensitive) - textnocase: sorts text alphabetically, without regard to case (case insensitive)

string, optional

sort direction: _- asc (default): ascending (a to z) sort order - desc: descending (z to a) sort order

string, optional

String or a variable that contains one


There are currently no examples for this function

See also