From a6779efb1c5bb342b79c60eca40e50cb1a7fad56 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston <174761+Jermolene@users.noreply.github.com> Date: Fri, 14 Jul 2023 12:41:04 +0100 Subject: [PATCH] Use locale sort for shadows For consistency and compatibility with non-shadow ordering --- boot/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/boot.js b/boot/boot.js index 5837f1768..0aa089aa0 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1150,7 +1150,7 @@ $tw.Wiki = function(options) { shadowTiddlerTitles = null, getShadowTiddlerTitles = function() { if(!shadowTiddlerTitles) { - shadowTiddlerTitles = Object.keys(shadowTiddlers).sort(); + shadowTiddlerTitles = Object.keys(shadowTiddlers).sort(function(a,b) {return a.localeCompare(b);}); } return shadowTiddlerTitles; },