int compareTo(String anotherString) Compares two strings lexicographically.
if you use this then it will return an int. Use this int to compare the string before it.
So if S1.compareTo(String S2) >0 then S1 is larger.
Joined: May 06, 2004
You'll have to write your own comparator and pass it to the sort() method. In your comparator, you'll extract the digits before the dot, convert them to an int and compare them. Then, if necessary, do the same for the digits following the dot (if there aren't any, treat that as a zero).