Houdini 18.0 Nodes TOP nodes

Sort TOP node

Sorts work items by a list of attributes

On this page

This node reorders input work items based on one more attribute values. The attributes are used to create a tuple that identifies the work item and determines its new index. The ordering of values in the Attributes to Sort By multiparm determine the order that attributes are inserted into the tuple.

For example, consider 3 work item with the buildingnum and floornum attributes. The first two work items both have buildingnum = 2, and floornum = 0 and floornum = 1 respectively. The third work item has buildingnum = 0 and floornum = 0. By specifying "buildingnum" as the first attribute to sort by and "floornum" as the second, the items would would be sorted in the order they were originally in. If "floornum" was put first and "buildingnum" second, the items would be reorder so that the new order is 3, 1, 2 instead.


Use Dynamic Partitioning

When on, the partitioner waits for all input work items to be generated before partitioning them. If the input work items are dynamic, then the partitioner has to wait for and depends on the parent(s) of those items.

Sort Direction

Determines if work items should be sorted in ascending or descending order

Attributes to Sort By

The number of attribute conditions.


The name of the attribute.


The type of the attribute, either Float, Integer, or String.


This parameter determines the attribute index that the condition should check.


example_top_sort Example for Sort TOP node

This example demonstrates how to use the sort node in PDG/TOPs.

See also

TOP nodes