code: public <T extends Comparable<? super T>> List<T> sort (Iterator<T> iter)
      {
          ArrayList<T> list = new ArrayList<T>();
          CollectionUtil.addAll(list, iter);
          return sort(list);
      }
docs: Copies the data from the supplied iterator into a list, sorts it and
  returns the list. The elements <em>must</em> implement {@link
  Comparable}.