PXC Documentation

PXC Home

Sort Array Inline

1.18.1

Sort array using node graph.

Node Data

Display name

Sort Array Inline

Internal name

Node_Iterate_Sort_Inline

Inheritances

Node_Collection_Inline
Node_Iterate_Sort_Inline

Inputs

Outputs


Iterate through the input array and sort the elements based on the condition defined by node graph. The sorting is done by checking 2 value whether to swap or not. For example, if you want to sort array of number in ascending order, you can check the return value of a Compare node with the condition a > b. If the return value is true, the two value will be swapped, thus putting the smaller value in front of the larger one.



Related Links