Skip to main content

Sort

Order rows by a column; with a limit, keep the top N.

Syntax​

{ "id": "n1", "op": "sort", "name": "sort", "x": 0, "y": 0, "params": {} }

An edge into it ends at "targetPort": "in"; one out of it starts at "sourcePort": "out"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:limit, or read elsewhere as ch('sort/limit').

Inputs​

PortTypeTakes
intableone edge

Parameters​

ParameterKindDefaultChoices
bycolumn""
descendingtogglefalse
limitint0

Outputs​

PortType
outtable

Details​

  • Category: Tables
  • Operator: sort

Older projects​

Projects saved before documents used operator classes. These convert to sort when they open: SortOp.