15
If I have an array like the following:
exemplo = ["Árvore", "Casa", "Computador", "É", "Poste", "Pássaro", "Índia", "Ar", "Ásia"]
The exemplo.sort()
considers the accentuation of the words to order, placing the accented last:
exemplo.sort()
["Ar", "Casa", "Computador", "Poste", "Pássaro", "Árvore", "Ásia", "É", "Índia"]
How to get the array sorted by disregarding accents?
Related (but not exactly duplicate): http://answall.com/questions/3994/comor-fazer-uma-busca-ignorando-acentuaca-em-javascript
– bfavaretto