Supported list types
Number list
The function returns a NUMBER LIST with elements in l sorted in a specified order. Available orders are ASC (for ascending order) and DESC (for descending order).
sort(number list l, order) #Output: Number list
Text list
Returns a text list with elements in l lexicographical order. Available orders are ASC (for ascending order) and DESC (for descending order).
sort(string list l, order) #Output: Text list