Sets the sort mode for the node.
sort([sortMode])
Parameter |
Description |
sortMode |
Optional, default: sgSortAlphabeticallyAZ Can be one of the following: sgSortAlphabeticallyAZ, sgSortAlphabeticallyZA, sgSortByType, sgSortNone |
Return Value
If the method succeeds, the return value is true. If the method fails, the return value is false. SGWorld.lastError contains the failure reason.
Remarks
The sort mode of the node determines how the child nodes of the caller’s node are ordered. Setting the sort mode is recursively applied to sub group nodes as well.
Note: internally, group nodes are always ordered before leaf nodes.