code: public void report(final Writer writer, final Comparator<UStats> comparator) throws IOException {
          report(writer, null, comparator);
      }
docs: Generate and print (System.out) the statistics report using the specified
  sort order.
  
  @param writer
  the destination to report to
  @param comparator
  the Comparator to sort the UStats by (see class constants for
  some useful suggestions)
  @throws IOException
  if the writer destination fails