comparator property
Optional comparator for maintaining sorted order among siblings.
When set, insertRoot and insert automatically place new nodes at the
correct sorted position (unless an explicit index is provided).
setRoots and setChildren sort their input before storing.
Implementation
final Comparator<TreeNode<TKey, TData>>? comparator;