Sort Rows

data · A196 · starter-package 7.0.1

The Sort Rows block for Nodestly workflows orders rows by one or more fields.

Use it when

Stably sort table rows by one or more comparable columns in an explicit direction.

Inputs and outputs

  • Table — table, required.
  • Columns — list, required.
  • Table — output table.

Controls

  • Direction — default ascending; choices: ascending, descending.

Rules

Columns is an ordered priority list and Direction applies to all keys. Sorting is stable. Numbers, text, booleans, DateTime, and Duration are comparable only with the same kind; missing or null values sort after present values before direction is applied.

Example

Columns ["country","score"] orders by country first and score second while preserving ties.

Failure behavior

Missing inputs, wrong connector values, unsafe records, unsupported values, cycles, unsupported modes, and size-limit violations stop the workflow and mark this block. Correct the highlighted connector or setting, then run again. Inputs are never changed.

Exact settings reference

These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.

IDSettingControlDefaultBounds/options
directionDirectiontoggleascendingoptions: Ascending (ascending), Descending (descending)

Errors and recovery

When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.

Connector data types

The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.

DirectionConnectorTypeRequired
Inputtable — Tabletableyes
Inputcolumns — Columnslistyes
Outputresult — Tabletableon success