code: public int compare(Object object1, Object object2) {
          return compare((String) object1, (String) object2);
      }
docs: Compares two objects to determine their relative order. The objects must
  be strings.
  
  @param object1
  the first string to compare.
  @param object2
  the second string to compare.
  @return a negative value if {@code object1} is less than {@code object2},
  0 if they are equal, and a positive value if {@code object1} is
  greater than {@code object2}.
  @throws ClassCastException
  if {@code object1} or {@code object2} is not a {@code String}.