summaryrefslogtreecommitdiffstats
path: root/server/publications/boards.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/publications/boards.js')
-rw-r--r--server/publications/boards.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/publications/boards.js b/server/publications/boards.js
index 6fbd9860..b54f27a8 100644
--- a/server/publications/boards.js
+++ b/server/publications/boards.js
@@ -36,6 +36,7 @@ Meteor.publish('boards', function() {
permission: 1,
type: 1,
},
+ sort: { sort: 1 /* boards default sorting */ },
},
);
});
@@ -61,6 +62,7 @@ Meteor.publish('archivedBoards', function() {
slug: 1,
title: 1,
},
+ sort: { sort: 1 /* boards default sorting */ },
},
);
});
@@ -90,7 +92,7 @@ Meteor.publishRelations('board', function(boardId, isArchived) {
$or,
// Sort required to ensure oplog usage
},
- { limit: 1, sort: { _id: 1 } },
+ { limit: 1, sort: { sort: 1 /* boards default sorting */, _id: 1 } },
),
function(boardId, board) {
this.cursor(Lists.find({ boardId, archived: isArchived }));