Block Group: Table Operations
Icon:Sort block icon

The Sort block returns a new table that reorders the input table’s rows.

For information on using dataflow blocks, see Dataflow.

For answers to some common questions about working with tables, see Tables.

Input/Output Properties

The following properties of the Sort block can take input and give output.

  • input (table)
  • column (string)
  • method (enum)
  • order (string)

input receives the table that you want to sort.

column specifies the name of the table column to sort by.

method specifies whether to sort values as strings (alphabetically) or as numbers.

order specifies whether to sort values in ascending or descending order.

Output Property

The following property of the Sort block can give output but cannot take input.

  • output (table)

output returns the sorted table.


The following image shows an example of the Sort block. In this example, the Sort block reorders the table rows in ascending order based on the Room_Temp column.

Sort block example