I am developing an android application for market survey. On the registration page I have a spinner to list down all the countries and I am using the function Arrays.sort()
to sort the list in alphabetically ascending order. I kept my tablet language as 'English' and obtained an alphabetically sorted list.
However, when I changed the tablet language to Portuguese, the list being displayed is not sorted (please see the screenshot attached). The language has some alphabets different from the English language. I know that java performs sorting based on ASCII code of the characters. But is there any other way to obtain a sorted result, irrespective of the language being used.