code: private static <C extends Comparable<C>> boolean increasing(C[] els) {
          for (int i = els.length; --i >= 1; ) {
              if (els[i - 1].compareTo(els[i]) > 0) {
                  return false;
              }
          }
          return true;
      }
docs: monotonically.