Lists

Sort

5min

Overview

The Sort action enables the sorting of a primitive list in either ascending or descending order.



Document image


Parameters

Inputs

  • 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

Outputs

  • List to be sorted (list<object>)

Configuration Details

  • 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.

Important Notes

  • 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.



Updated 14 Apr 2024
Doc contributor
Doc contributor
Did this page help you?