The following node is available in the Open Source KNIME predictive analytics and data mining platform version 2.7.1. Discover over 1000 other nodes, as well as enterprise functionality at http://knime.com.

Column Resorter

This node changes the order of the input columns, based on user defined settings. Columns may be shifted in single steps left or right, or completely to the beginning or end of the input table. Furthermore columns may also be sorted based on their name. The re-sorted table is provided at the out port.

Once the node's dialog has been configured, it is possible to connect an new input table with different structure to the node and execute it without the need to configure the dialog again. New and previously unknown columns will be inserted at the position of the column place holder "<any unknown new column>". This place holder can be positioned anywhere like any column.

Dialog Options

Sort alphabetical [A-Z, Z-A]
Sorts the elements in alphabetical order ascending (A-Z) or descending (Z-A).
Move one step [Up, Down]
Moves the selected element(s) one up or down. If the top or the bottom of the list is reached, the selected element(s) is/are enqueued on the other end of the table again.
Move first/last
Moves the selected element(s) to the top or at the end of the table.
Reset
Restores the original table structure as in the input table.

Ports

Input Ports
0 Table containing columns to rearrange.
Output Ports
0 Table with rearranged columns.
This node is contained in KNIME Base Nodes provided by KNIME GmbH, Konstanz, Germany.