ordered_tree :: OrderedTree :: sort_with
This method basically sorts roots then each group of children
# Sort roots and other elements using a comparator method # This method basically sorts roots then each group of children fun sort_with(comparator: Comparator) do comparator.sort(roots) for a in sub.values do comparator.sort(a) end end