HierarchyLevelNode.sortChildren Method

Sorts the children of this instance by their text.
 

Parameters

isAscending

Type: Boolean
If true then sort in ascending order; otherwise sort in descending order.
predicate

Type: Function - May be null
The sort predicate to use.
recursive

Type: Boolean
(optional) Whether or not the sort should recursively sort (all children's children).
Optional: True