0 / 0
reordernode properties
Last updated: Jan 17, 2024
reordernode properties

Field Reorder node iconThe 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"])
Table 1. reordernode properties
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.
Generative AI search and answer
These answers are generated by a large language model in watsonx.ai based on content from the product documentation. Learn more