diff --git a/server/lib/rdio-scanner/graphql/datasources/get-systems.js b/server/lib/rdio-scanner/graphql/datasources/get-systems.js index a2497c1..c1fc8ee 100644 --- a/server/lib/rdio-scanner/graphql/datasources/get-systems.js +++ b/server/lib/rdio-scanner/graphql/datasources/get-systems.js @@ -2,7 +2,9 @@ function getSystems(models) { return async () => { - const systems = await models.rdioScannerSystem.findAll(); + const systems = await models.rdioScannerSystem.findAll({ + order: [['system', 'ASC']], + }); return systems; }; diff --git a/server/lib/rdio-scanner/routes/trunk-recorder-system-upload.js b/server/lib/rdio-scanner/routes/trunk-recorder-system-upload.js index 589d35d..5a26478 100644 --- a/server/lib/rdio-scanner/routes/trunk-recorder-system-upload.js +++ b/server/lib/rdio-scanner/routes/trunk-recorder-system-upload.js @@ -58,7 +58,7 @@ class TrunkRecorderSystemUpload { } const emit = async () => { - const systems = await models.rdioScannerSystem.findAll(); + const systems = await models.rdioScannerSystem.findAll({ order: [['system', 'ASC']]}); pubsub.publish('rdioScannerSystems', { rdioScannerSystems: systems }); };