reordernode properties
The Field Reorder node defines the natural order used to display fields downstream. This order affects the display of fields in a variety of places, such as tables, lists, and when selecting fields. This operation is useful when working with wide datasets to make fields of interest more visible.
Example
node = stream.create("reorder", "My node")
node.setPropertyValue("mode", "Custom")
node.setPropertyValue("sort_by", "Storage")
node.setPropertyValue("ascending", False)
node.setPropertyValue("start_fields", ["Age", "Cholesterol"])
node.setPropertyValue("end_fields", ["Drug"])
reordernode properties |
Data type | Property description |
---|---|---|
mode
|
Custom
Auto
|
You can sort values automatically or specify a custom order. |
sort_by
|
Name
Type
Storage
|
|
ascending
|
flag | |
start_fields
|
[field1 field2 … fieldn] | New fields are inserted after these fields. |
end_fields
|
[field1 field2 … fieldn] | New fields are inserted before these fields. |