ArraySort(array, sort_type [, sort_order ])
Returns the specified array with elements numerically or alphanumerically sorted.
Name of the array you want to sort.
The type of sort to execute. Sort type can be:
numeric
-- Sorts numerically
text
-- Sorts text alphabetically, uppercase before lowercase
textnocase
-- Sorts text alphabetically; case is ignored
The sort order you want to enforce:
asc
-- (Default) Ascending sort order
desc
-- Descending sort order