I'm trying to sort a vector of names with this method, but when I have lowercase letters and accentuate the names go to the bottom of the list, does anyone know a method that orders considering capital letters, lowercase, with accent?
String nomes[] = { "Ana","aa","B" };
for (int i = 0; i < nomes.length - 1; ++i)
for (int j = i + 1; j < nomes.length; ++j)
if (nomes[i].compareTo(nomes[j]) > 0) {
String temp = nomes[i];
nomes[i] = nomes[j];
nomes[j] = temp;
}