mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 22:33:50 +00:00
Alphabetically sort tiddlers
TiddlyWiki does this to make life easier for SCC systems
This commit is contained in:
parent
cfa448f712
commit
b07d518425
@ -93,6 +93,7 @@ var Recipe = function(store,filepath,callback) {
|
|||||||
};
|
};
|
||||||
this.tiddlerQueue.drain = function() {
|
this.tiddlerQueue.drain = function() {
|
||||||
me.chooseTiddlers(me.recipe);
|
me.chooseTiddlers(me.recipe);
|
||||||
|
me.sortTiddlersForMarker("tiddler");
|
||||||
me.callback();
|
me.callback();
|
||||||
};
|
};
|
||||||
this.recipeQueue.push({filepath: filepath,
|
this.recipeQueue.push({filepath: filepath,
|
||||||
@ -140,6 +141,12 @@ Recipe.prototype.chooseTiddlers = function(recipe) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Recipe.prototype.sortTiddlersForMarker = function(marker) {
|
||||||
|
if(this.markers[marker]) {
|
||||||
|
this.markers[marker].sort();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// Process the contents of a recipe file
|
// Process the contents of a recipe file
|
||||||
Recipe.prototype.processRecipeFile = function(recipe,text,contextPath) {
|
Recipe.prototype.processRecipeFile = function(recipe,text,contextPath) {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user