Lexicographically compare this string with other.
Compare this and the specified other string objects using a lexicographical comparison and return a negative value if this string is less than other string, a positive value if this string is greater than other string, and 0 if this string is equal to other string.
negative, zero, or positive comparison result
| Name | Description |
|---|---|
| other | string reference to compare against |