|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
attributes. The first two work items both have
buildingnum = 2, and
floornum = 0
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.
Determines when the node performs the sorting operation. It can sort the input works after they've all been generated, or after they've cooked. The node needs access to the full set of upstream work items in order to correctly order them.
Determines if work items should be sorted in ascending or descending order
Ensure Unique Work Item Indices
When this toggle is enabled, the node will ensure that all work items have a unique index, even if they have the same sort attribute values.
Attributes to Sort By
The number of attribute conditions. If no attributes are specified the work items will be left in the same order, but will have their indices made unique if Ensure Unique Work Item Indices is enabled.
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.