Syntax
sort([<collection>], '<sortBy>'?)Examples
sort(createArray(2, 1, 0, 3))[0, 1, 2, 3]
sort(body('Get_items')?['value'], 'Title')Items sorted by Title
Maker notes
- Sorts ascending. Wrap it in reverse() for descending order.
Sorts an array, optionally by a property of its objects.
sort([<collection>], '<sortBy>'?)sort(createArray(2, 1, 0, 3))[0, 1, 2, 3]
sort(body('Get_items')?['value'], 'Title')Items sorted by Title