Sort
core.sort · version 1 · Transform
Reorder items by field values, randomly, or with a custom comparison.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| input 0 | main | |||
| output 0 | main |
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
type | options | "simple" | One of simple, random, code. | ||
sortFieldsUi | fixed_collection | type = simple | Sort Fields. | ||
sortFieldsUi.fieldName | string | yes | Field. | ||
sortFieldsUi.order | options | "ascending" | One of ascending, descending. | ||
code | code | type = code | Comparison Code. JavaScript body comparing items a and b; return a negative number to put a first. | ||
options | collection | ||||
options.disableDotNotation | boolean | false | Disable Dot Notation. Treat field names containing dots as plain keys instead of nested paths. |
Import
Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.
| Source type | Version range | Status | Fixtures |
|---|---|---|---|
n8n-nodes-base.sort | 1 | unverified |