« get me outta code hell

sort: canonize sorting locale, just in case - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-02-25 06:18:37 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-02-25 06:18:37 -0400
commitb26e3d21191e501994bf8ed9acc4e67681ea569e (patch)
tree0d81533b0b13cacb811df9173fa698b2ff86f5f8 /src/data
parent96f2d47b8e46c95e546e5e0335bdfaaca58309ef (diff)
sort: canonize sorting locale, just in case
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/sorting-rule.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/things/sorting-rule.js b/src/data/things/sorting-rule.js
index 0ed7fb0f..b169a541 100644
--- a/src/data/things/sorting-rule.js
+++ b/src/data/things/sorting-rule.js
@@ -264,7 +264,7 @@ export class DocumentSortingRule extends ThingSortingRule {
     rules =
       rules
         .slice()
-        .sort((a, b) => a.filename.localeCompare(b.filename));
+        .sort((a, b) => a.filename.localeCompare(b.filename, 'en'));
 
     for (const {chunk, filename} of chunkByProperties(rules, ['filename'])) {
       const initialLayout = getThingLayoutForFilename(filename, wikiData);