The List sorter sorts all the values in a target List when the node is executed. Use this node when you want to create your own sorting rules. If you only want to sort e.g. a list of numbers into ascending order, it is easier to use the Run action > Sort input of the List node directly.
You can use the Value A and Value B outputs to send two list values to a Compare node. When the List Sorter is executed, it provides all possible value combinations with these output. You can then send the result of the comparison to the input Is value A before B
to define the order of each two value combination when the list is sorted.
Execute | Executes the node |
↳ On Start | Executes the node at the start of the game |
Enabled | Determines if the node can be executed. |
Input list | Target list for sorting |
Is A before B | Takes 1 or 0 as input. |
Value A | List value A |
Value B | List value B |