fixup! New: Use natural sorting for lists of items in the UI
This commit is contained in:
parent
8faef23f76
commit
afb1eb8631
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue