From e2c3da732be8abcf6d4a8ef7aaaca3b8c6517166 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Fri, 20 Jun 2025 03:15:10 -0600 Subject: [PATCH] Sort listed orphans --- interactionHandlers/commands/manage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/interactionHandlers/commands/manage.js b/interactionHandlers/commands/manage.js index d9f3995..508641d 100644 --- a/interactionHandlers/commands/manage.js +++ b/interactionHandlers/commands/manage.js @@ -127,6 +127,7 @@ module.exports.execute = async (interaction) => { await interaction.editReply({ content: 'No orphaned extensions found!', ephemeral: true }); return; } + orphans.sort((a, b) => Number(a.id) - Number(b.id)); const orphanList = orphans.map(o => `**Extension:** \`${o.id}\` - **Name:** \`${o.description}\``).join('\n'); await interaction.editReply({ content: `**Orphaned Extensions:**\n${orphanList}`,