Sort listed orphans

This commit is contained in:
Christopher Cookman 2025-06-20 03:15:10 -06:00
parent d13a814bb6
commit e2c3da732b

View file

@ -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}`,