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
Issue list
The 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