Coll

ator collator = ator.getInstance(Locale.CANADA);
int compare = collator.compare(aString1, aString2);
if (compare < 0) {
    // aString1 < aString2
} else if (compare > 1) {
    // aString1 > aString2
} else {
    // aString1 = aString2
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.