1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-28 04:55:14 +00:00

Ensure shadow tiddler listings are always sorted

Currently shadow tiddler ordering depends upon the order in which the shadows appear in the plugin JSON
This commit is contained in:
Jeremy Ruston
2023-07-13 19:27:50 +01:00
parent 9a1d7085b8
commit 08bad90e51
2 changed files with 5 additions and 5 deletions

View File

@@ -1150,7 +1150,7 @@ $tw.Wiki = function(options) {
shadowTiddlerTitles = null,
getShadowTiddlerTitles = function() {
if(!shadowTiddlerTitles) {
shadowTiddlerTitles = Object.keys(shadowTiddlers);
shadowTiddlerTitles = Object.keys(shadowTiddlers).sort();
}
return shadowTiddlerTitles;
},