From 8f337f17e45f8af8d96b6043d54466e5878b7e0b Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Mon, 11 Mar 2019 19:32:58 +0200 Subject: - Order All Boards by starred, color, board name and board description. Part 2. Thanks to xet7 ! --- client/components/boards/boardsList.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'client/components/boards') diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js index 74a8e4d4..fcd1a6ce 100644 --- a/client/components/boards/boardsList.js +++ b/client/components/boards/boardsList.js @@ -26,11 +26,8 @@ BlazeComponent.extendComponent({ 'members.userId': Meteor.userId(), type: 'board', subtasksDefaultListId: null, - }, { - sort: { stars: -1, color: 1, title: 1, description: 1 }, - }); + }, { sort: [['stars', 'desc'], ['color', 'asc'], ['title', 'asc'], ['description', 'asc']] }); }, - isStarred() { const user = Meteor.user(); return user && user.hasStarred(this.currentData()._id); -- cgit v1.2.3-1-g7c22