int compareTo(Object anObject)
int compareTo(String other)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Compares this string with string other lexicographically based on the Unicode value of each character.
This method returns the value 0 if the argument string is equal to this string, a value less than 0 if this string is lexicographically less than the string argument and a value greater than 0 if this string is lexicographically greater than the string argument.
Example
int i = "abc".compareTo("abd"); // returns -1
int i = "abc".compareTo("abc"); // returns 0
int i = "abc".compareTo("abb"); // returns 1