diff --git a/src/commands/utility/follow.command.ts b/src/commands/utility/follow.command.ts index 6a6808e..2e109e6 100644 --- a/src/commands/utility/follow.command.ts +++ b/src/commands/utility/follow.command.ts @@ -55,8 +55,7 @@ const cmd: CommandDefinition = { name: 'service', execute: async (interaction) => { - const services = await statusService.serviceRepo.find({where: {notify: true}}); - + const services = await statusService.serviceRepo.find({where: {notify: true}, order: {id: 'ASC'}}); interaction.respond(services.map((v) => ({name: v.name, value: v.name}))); } } diff --git a/src/commands/utility/uptime.command.ts b/src/commands/utility/uptime.command.ts index 7140834..f29983b 100644 --- a/src/commands/utility/uptime.command.ts +++ b/src/commands/utility/uptime.command.ts @@ -44,7 +44,7 @@ const cmd: CommandDefinition = { { name: 'service', execute: async (interaction) => { - const services = await statusService.serviceRepo.find(); + const services = await statusService.serviceRepo.find({order: {id: 'ASC'}}); interaction.respond(services.map((v) => ({name: v.name, value: v.name}))); } }