Lists
Sort
5min
The Sort action enables the sorting of a primitive list in either ascending or descending order.
- List to be sorted (list<object>) - This is both input and output; it will return the updated list in the same variable.
- Input order (a/d) (dropdown):
- Ascending Order
- Descending Order
- List to be sorted (list<object>)
- This action modifies the input list directly, updating it with the sorted order.
- The sorting order can be specified by selecting either Ascending Order or Descending Order from the dropdown parameter.
- Make sure to provide a valid list object as input to ensure proper sorting.
- Changes made to the input list will be reflected in the output list.
- This action is suited only for lists of primitives, and not suited for lists of data models or complex JSON objects. For sorting lists of data models or complex JSON objects, use the Sort Data Model action.