|
@@ -45,10 +45,16 @@ module.exports = app => {
|
|
|
where: {id: billsId},
|
|
|
columns: ['id', 'name'],
|
|
|
});
|
|
|
+ billsList.sort(function (a, b) {
|
|
|
+ return billsId.indexOf(a.id) - billsList.indexOf(b.id);
|
|
|
+ });
|
|
|
const chapterList = await this.db.select('zh_std_xmj_list', {
|
|
|
where: {id: chaptersId},
|
|
|
columns: ['id', 'name'],
|
|
|
});
|
|
|
+ chapterList.sort(function (a, b) {
|
|
|
+ return chaptersId.indexOf(a.id) - chapterList.indexOf(b.id);
|
|
|
+ });
|
|
|
return [billsList, chapterList];
|
|
|
}
|
|
|
|