code: public List<UStats> getStats(final Comparator<UStats> comparator) {
          List<UStats> result = new ArrayList<>(stats);
          if (comparator != null) {
              result.sort(comparator);
          }
          return result;
      }
docs: Retrieve the raw statistics this Report would deliver, sorted in the
  order specified (or the order they were added to the benchmark, if null).
  
  @param comparator
  The comparator to sort the results by.
  @return the statistics in the specified order.