struct.sort()
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=string, sortOrder=string, pathToSubElement=string )
Returns: Array
Examples
animals = {
cat:"rat",
lion:"deer",
bear:"fish"
};
writedump(animals);
sort = structsort(animals,"text","desc");
writeDump(sort);