fix alphabetization
This commit is contained in:
parent
2cdd58acae
commit
1a131f74f1
@ -184,17 +184,7 @@ function generateDropOp() { // For options that change based on data.
|
||||
|
||||
// Generate data box material.
|
||||
|
||||
var phonemes = Object.keys(langInfo.phonemes).sort(function(a, b) {
|
||||
var A = Object.keys(a)[0]; // ignore upper and lowercase
|
||||
var B = Object.keys(b)[0]; // ignore upper and lowercase
|
||||
if (A < B) {
|
||||
return -1;
|
||||
} else if (A > B) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
});;
|
||||
var phonemes = Object.keys(langInfo.phonemes).sort(Intl.Collator().compare);
|
||||
|
||||
while (dataBox.firstChild) {
|
||||
dataBox.removeChild(dataBox.firstChild);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user