sortChildren

Sorts this node's direct children in place according to the given comparator. Only the immediate children are reordered; their subtrees are left untouched.

Parameters

comparator

the comparator used to order the children.