public static < T > Iterator < T > getSortedIterator ( Iterable < T > coll , Comparator < T > comparator ) { return getSortedIterator ( coll . iterator ( ) , comparator ) ; }
Get an Iterator over the supplied Collection that returns the elements in the order dictated by the supplied Comparator .