Reference Column Resorter

This node changes the order of the input columns based on the order provided at the second input table. The latter has to contain a string column with columns names as in the first input table. The columns of the first input are then sorted according to this column's (row) order. Columns not part of this sort column are sorted to the start or end or entirely dropped from the output. The sort column must not contain duplicates (node will error out). Unknown column identifiers are ignored.

Options

Order Column
The column in the second input storing the ordered list of column names in the first input
Unspecified Strategies
First: Put columns whose positions are not specified by the second input in their original order at the first positions.
Last: Put columns whose positions are not specified by the second input in their original order at the last positions.
Drop: Drop the columns whose positions are not specified by the second input.

Input Ports

Icon
Table containing columns to rearrange.
Icon
Table containing the new order for the columns.

Output Ports

Icon
Table with rearranged columns.

Views

This node has no views

Workflows

Further Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.