diff --git a/server/models/Library.js b/server/models/Library.js index 7f0f438d..1fb528cd 100644 --- a/server/models/Library.js +++ b/server/models/Library.js @@ -145,7 +145,8 @@ module.exports = (sequelize) => { */ static async getAllLibraryIds() { const libraries = await this.findAll({ - attributes: ['id'] + attributes: ['id', 'displayOrder'], + order: [['displayOrder', 'ASC']] }) return libraries.map(l => l.id) }