Settings
| Setting | What it is |
|---|---|
| Rows | The list to order. |
| Sort by | The first field decides; a second field breaks its ties. Rows with no value sort last. No fields keeps the incoming order. |
Technical details
| Key | Value |
|---|---|
rows | any JSONits `{{ }}` must give an array |
sort | list of {field: text, direction?: "asc" or "desc"}, by default [] |
Output
| Field | Type |
|---|---|
rows | array |
countRow count | number |
Sample output, and the expression for each field
- count1
- rows
- [0]
- id"INV-003"
- [0]
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"rows": "<rows>",
"sort": []
},
"label": "Sort",
"type": "list.sort",
"version": 1
}