diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-03-11 19:32:58 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-03-11 19:32:58 +0200 |
commit | 8f337f17e45f8af8d96b6043d54466e5878b7e0b (patch) | |
tree | c1eb836d18594ffbcef35056f541a6bb02de1ddf | |
parent | 52a744b4436bc1050d95e2f47272649dbbd0a988 (diff) | |
download | wekan-8f337f17e45f8af8d96b6043d54466e5878b7e0b.tar.gz wekan-8f337f17e45f8af8d96b6043d54466e5878b7e0b.tar.bz2 wekan-8f337f17e45f8af8d96b6043d54466e5878b7e0b.zip |
- Order All Boards by starred, color, board name and board description. Part 2.
Thanks to xet7 !
-rw-r--r-- | client/components/boards/boardsList.js | 5 |
1 files changed, 1 insertions, 4 deletions
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); |