code: public static <T extends Offset<T>> Ordering<OffsetRange<T>> byEndOrdering() {
      return Ordering.<T>natural().onResultOf(OffsetRange.<T>toEndInclusiveFunction());
    }
docs: Provides an {@link Ordering} of {@link OffsetRange}s by their end position. Note that this is
  not a total ordering because {@link OffsetRange}s with the same end position but different
  start positions will compare as equal.
  
  Consider producing a compound ordering with {@link #byStartOrdering()} using {@link
  Ordering#compound(Comparator)} or using one of the predefined total orderings.