Use natural sort

This commit is contained in:
Bryan Ashby 2017-01-31 00:16:43 -07:00
parent 807ca9bded
commit 9c61b2b945
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ function sortAreasOrConfs(areasOrConfs, type) {
} else {
const keyA = entryA.sort ? entryA.sort.toString() : entryA.name;
const keyB = entryB.sort ? entryB.sort.toString() : entryB.name;
return keyA.localeCompare(keyB);
return keyA.localeCompare(keyB, { sensitivity : false, numeric : true } ); // "natural" compare
}
});
}