mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-09 07:30:01 +00:00
![Jeremy Ruston](/assets/img/avatar_default.png)
* Failing test * Fix underlying problem * Less naive fix Now we make sure we maintain the sort order of the titles array when adding a new tiddler * Fix failing tests * Refactor filter tests to repeat them with different store orderings * Revert "Fix failing tests" This reverts commit ee03ee57f59aa3a21a518c0190acbdd060497a49. * Refine fix to retain stylesheet ordering The order of tiddlers in the HTML file uses localeCompare(), and that determines the insertion order. So if we want to be compatible with older versions we have to use localeCompare() to order tiddlers, not a plain sort() * Don't sort shadow tiddlers Instead rely on the existing ordering * Fix failing tests, take 2 I think that all of these changes are explained by the store no longer retaining insertion order, but now using localecompare ordering * Fix tests from #6327