Supported list types
Number list
This 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
This function 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
Issue list
This function returns an issue list with elements in l ordered according to values of field.
Argument field has the format {nnnnn}
for numeric and date-time fields, %{nnnnn}
for text fields, or %{nnnnn.i}
for cascading select fields. Available orders are ASC (for ascending order) and DESC (for descending order).
sort(issue list l, field field, order) #Output: Issue list