public static < DATATYPE , ITEMTYPE extends ITreeItem < DATATYPE , ITEMTYPE > > void sort ( @ Nonnull final IBasicTree < ? extends DATATYPE , ITEMTYPE > aTree , @ Nonnull final Comparator < ? super DATATYPE > aValueComparator ) { _sort ( aTree , Comparator . comparing ( IBasicTreeItem :: getData , aValueComparator ) ) ; }
Sort each level of the passed tree with the specified comparator .