Data Sort
Category: Transform
Sort data by one or more fields with multi-level sorting
What this node does
- Multi-level sorting
- Asc/desc ordering
- Nested field sorting
- Null handling
How to use
- In the Hydra Builder, open or create a workflow
- In the node palette on the left, find Data Sort under the Transform category (or use the search bar)
- Drag the node onto the canvas
- Double-click the node to open its configuration dialog
- Fill in the required parameters (see Configuration below)
- Connect the Input Data and Sort Fields input port from an upstream node
- Connect the Sorted Results output to the next node downstream
Inputs
| Port | Type | Required | Description |
|---|---|---|---|
| Input Data | array | ✓ | A list of items |
| Sort Fields | any | ✓ | any data |
Outputs
| Port | Type | Description |
|---|---|---|
| Sorted Results | array | A list of items |
Configuration
Open the configuration dialog by double-clicking the Data Sort node on the canvas.
| Parameter | What to enter |
|---|---|
sortBy | Configure sortBy in the node settings |
order | Configure order in the node settings |
nullsFirst | Configure nullsFirst in the node settings |
When to use this node
- Sort patients by age
- Order vitals by timestamp
- Rank lab results
Need help configuring this node?
Go to Settings → Connectors to set up the connection this node depends on, then reference the connector ID in the node configuration dialog.