From 243af32fc798f161e72eddf9e43053b1ba89d98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Manelli?= Date: Mon, 19 Mar 2018 16:47:07 -0300 Subject: Add checklist ordering capability --- models/cards.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models') 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() { -- cgit v1.2.3-1-g7c22