|
@@ -197,7 +197,7 @@ BlazeComponent.extendComponent({
|
|
},
|
|
},
|
|
boardLists(boardId) {
|
|
boardLists(boardId) {
|
|
let boardLists = [];
|
|
let boardLists = [];
|
|
- const lists = Lists.find({ 'boardId': boardId, 'archived': false })
|
|
|
|
|
|
+ const lists = Lists.find({ 'boardId': boardId, 'archived': false },{sort: ['sort','asc']});
|
|
lists.forEach(list => {
|
|
lists.forEach(list => {
|
|
let cardCount = Cards.find({ 'boardId': boardId, 'listId': list._id }).count()
|
|
let cardCount = Cards.find({ 'boardId': boardId, 'listId': list._id }).count()
|
|
boardLists.push(`${list.title}: ${cardCount}`);
|
|
boardLists.push(`${list.title}: ${cardCount}`);
|