diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts index 51c38a754..3488b64dd 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.ts @@ -48,6 +48,7 @@ router.get( channel.guild, ); } + channels.sort((a, b) => a.position - b.position); res.json(channels); },