code: public static Comparator<Level> comparator() {
          return new Comparator<Level>() {
              @Override
              public int compare(Level l1, Level l2) {
                  return Integer.compare(l1.intValue(), l2.intValue());
              }
          };
      }
docs: Compare on {@link java.util.logging.Level#intValue()}