code: public static <KEYTYPE extends Comparable <? super KEYTYPE>, DATATYPE, ITEMTYPE extends ITreeItemWithID <KEYTYPE, DATATYPE, ITEMTYPE>> void sortByID (@Nonnull final IBasicTree <DATATYPE, ITEMTYPE> aTree)
    {
      _sort (aTree, IHasID.getComparatorID ());
    }
docs: Sort each level of the passed tree on the ID with the specified comparator.
  This method assumes that the IDs in the tree item implement the
  {@link Comparable} interface.
  
  @param <KEYTYPE>
  Tree item key type
  @param <DATATYPE>
  Tree item data type
  @param <ITEMTYPE>
  Tree item type
  @param aTree
  The tree to be sorted.