I am using the following compareTo-Method (in this case for two strings)
Collections.sort(stringList, new Comparator<String>() {
public int compare(String a, String b) {
return a.compareTo(b);
}
});
in my current Android-Project.
The compareTo-Function sets special characters like #'.
and numbers before letters. Can I modify compareTo
somehow, that letters are before numbers and numbers before special characters simple as possible?
Or do I need to write the compare-method by my own?
Thanks in advance!