mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 18:00:26 +00:00
added case-insensitivity using wiki.sortTiddlers
This commit is contained in:
parent
a8ab08e8fa
commit
6006ed0ecf
@ -531,8 +531,10 @@ exports.sortByList = function(array,listTitle) {
|
||||
unlisted.push(title);
|
||||
}
|
||||
}
|
||||
//concat listed with unlisted, sorted
|
||||
titles = titles.concat(unlisted.sort());
|
||||
//sort unlisted
|
||||
$tw.wiki.sortTiddlers(unlisted,"title",false,false);
|
||||
//concat listed with unlisted
|
||||
titles = titles.concat(unlisted);
|
||||
// Finally obey the list-before and list-after fields of each tiddler in turn
|
||||
var sortedTitles = titles.slice(0);
|
||||
for(t=0; t<sortedTitles.length; t++) {
|
||||
|
Loading…
Reference in New Issue
Block a user