code: public int compareTo(OffsetCharSequence other) {
          int len1 = length();
          int len2 = other.length();
          int lim = Math.min(len1, len2);
  
          for (int i = 0; i  < lim; i++) {
              char c1 = charAt(i);
              char c2 = other.charAt(i);
              if (c1 != c2) {
                  return c1 - c2;
              }
          }
          return len1 - len2;
      }
docs: Compares this char sequence to another char sequence <code>o</code>.
  
  @param o the other char sequence.
  @return as defined in {@link String#compareTo(Object)} but also takes
  {@link #transform} into account.