From 1b75242345cd365f8b72a75bd49316da8361fb0f Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 11 Dec 2013 22:01:20 +0000 Subject: [PATCH] Fix up caller of wiki.forEachTiddler() --- core/modules/commands/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/commands/server.js b/core/modules/commands/server.js index 24771bb72..24f94de65 100644 --- a/core/modules/commands/server.js +++ b/core/modules/commands/server.js @@ -203,7 +203,7 @@ var Command = function(params,commander,callback) { handler: function(request,response,state) { response.writeHead(200, {"Content-Type": "application/json"}); var tiddlers = []; - state.wiki.forEachTiddler("title",function(title,tiddler) { + state.wiki.forEachTiddler({sortField: "title"},function(title,tiddler) { var tiddlerFields = {}; $tw.utils.each(tiddler.fields,function(field,name) { if(name !== "text") {