Sort array

The Sort array node is used to sort array in either ascending or descending order.

Properties Panel

General

FieldDescriptionRequired

Node name

true

Variable name

Variable name to store result

true

Array to sort

Values to sort

true

Key to sort by

Key to sort array by

false

Sort order

Ascending or Descending

false

Conditional fields

Key to sort by : This field is required if array to sort have dict/object values. e.g.

[
  {
    name: "john",
    age:20
  },
  ...
]

If you want to sort this list based of age then you can specify Key to sort by as age

Returns

This node does not return any values but create a new variables with result . You can access it using magical autocomplete using $.variables.<Variable name>

Last updated