code: @Beta
    public static <T> boolean isInOrder(Iterable<? extends T> iterable, Comparator<T> comparator) {
      checkNotNull(comparator);
      Iterator<? extends T> it = iterable.iterator();
      if (it.hasNext()) {
        T prev = it.next();
        while (it.hasNext()) {
          T next = it.next();
          if (comparator.compare(prev, next) > 0) {
            return false;
          }
          prev = next;
        }
      }
      return true;
    }
docs: Returns {@code true} if each element in {@code iterable} after the first is greater than or
  equal to the element that preceded it, according to the specified comparator. Note that this is
  always true when the iterable has fewer than two elements.