fixup! New: Use natural sorting for lists of items in the UI

This commit is contained in:
Mark McDowall 2024-07-15 15:40:51 -07:00
parent 8faef23f76
commit afb1eb8631
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ function calcOrder(profileFormatItems) {
if (b.score !== a.score) {
return b.score - a.score;
}
return a.name > b.name ? 1 : -1;
return a.localeCompare(b.name, undefined, { numeric: true });
}).map((x) => items[x.format]);
}