summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-03-19 16:47:07 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-03-19 16:47:07 -0300
commit243af32fc798f161e72eddf9e43053b1ba89d98a (patch)
tree0fca4c42907e17887eb491ff6f5b9cdb17840e5f /models
parentca89442f3a62a7a97044a6e572eea70158edadbd (diff)
downloadwekan-243af32fc798f161e72eddf9e43053b1ba89d98a.tar.gz
wekan-243af32fc798f161e72eddf9e43053b1ba89d98a.tar.bz2
wekan-243af32fc798f161e72eddf9e43053b1ba89d98a.zip
Add checklist ordering capability
Diffstat (limited to 'models')
-rw-r--r--models/cards.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/cards.js b/models/cards.js
index 544afca5..8fd15488 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -155,7 +155,7 @@ Cards.helpers({
},
checklists() {
- return Checklists.find({cardId: this._id}, {sort: {createdAt: 1}});
+ return Checklists.find({cardId: this._id}, {sort: { sort: 1 } });
},
checklistItemCount() {