public static < KEYTYPE , DATATYPE , ITEMTYPE extends ITreeItemWithID < KEYTYPE , DATATYPE , ITEMTYPE > > void sortByID ( @ Nonnull final IBasicTree < DATATYPE , ITEMTYPE > aTree , @ Nonnull final Comparator < ? super KEYTYPE > aKeyComparator ) { _sort ( aTree , Comparator . comparing ( IHasID :: getID , aKeyComparator ) ) ; }
Sort each level of the passed tree on the ID with the specified comparator .