Tree.Node extension that adds methods useful for nodes in trees that use the
Sorts this node's children.
sort event will be
Custom comparator function to use. If specified, this will become the node's new comparator function, overwriting any previous comparator function that was set for the node.
true, children will be
sorted in reverse (descending) order. Otherwise they'll be sorted in
ascending order. This will become the node's new sort order,
overwriting any previous sort order that was set for the node.
Source of the sort operation. Will be
passed along to the
sort event facade.