浏览代码

fixing issue #4634

Repmovs 2 年之前
父节点
当前提交
98b7953d7f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/components/boards/boardsList.js

+ 1 - 1
client/components/boards/boardsList.js

@@ -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}`);