Use natural sort
This commit is contained in:
parent
807ca9bded
commit
9c61b2b945
|
@ -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
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue