summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardsList.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-03-11 19:32:58 +0200
committerLauri Ojansivu <x@xet7.org>2019-03-11 19:32:58 +0200
commit8f337f17e45f8af8d96b6043d54466e5878b7e0b (patch)
treec1eb836d18594ffbcef35056f541a6bb02de1ddf /client/components/boards/boardsList.js
parent52a744b4436bc1050d95e2f47272649dbbd0a988 (diff)
downloadwekan-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 !
Diffstat (limited to 'client/components/boards/boardsList.js')
-rw-r--r--client/components/boards/boardsList.js5
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);