code: public static <E extends Comparable<E>> int sortedIndex(final List<E> list, final E value) {
          int index = 0;
          for (E elem : list) {
              if (elem.compareTo(value) >= 0) {
                  return index;
              }
              index += 1;
          }
          return -1;
      }
docs: /*
  Documented, #sortedIndex