docs: public static Comparator comparator(final Mapper mapper, final boolean reverse){
          return new Comparator(){
              public int compare(Object o, Object o1) {
                  return ((Comparable) mapper.map(reverse?o1:o)).compareTo(mapper.map(reverse?o:o1));
              }
          };
      }