Sorts a list by ascending or descending order. In ascending mode, numbers come first and then text (1,2,cow), in descending mode text comes first (cow,2,1). Use before or after remove-duplicate-list-values adaptor to get a sorted list without duplicates.
Inputs
list
Type: list
Required: Yes
The list to be sorted.
sort direction
Type: text
Required: No
Specifies the sort direction, should be either asc (for ascending order) or desc (for descending order).
Outputs
list
Type: list
A list containing the sorted values.