# Sorting



# Functions

- **function-arraysort** - Sorts array elements numerically or alphanumerically.
- **function-listsort** - Sorts list elements according to a sort type and sort order.
- **function-querysort** - Sorts the query based on the column specified and the order criteria given. Modifies the original query object
- **function-structsort** - 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.
- **function-structtosorted** - Returns a struct sorted by the top level keys in a structure. Sorts using alphabetic or numeric sorting.

# Methods

- **method-array-sort** - Sorts array elements numerically or alphanumerically.
- **method-query-sort** - Sorts the query based on the column specified and the order criteria given. Modifies the original query object
- **method-string-listsort** - Sorts list elements according to a sort type and sort order.
- **method-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.
- **method-struct-tosorted** - Returns a struct sorted by the top level keys in a structure. Sorts using alphabetic or numeric sorting.