feat: sort member's list alphabetically
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful

This commit is contained in:
Twig 2025-07-16 10:48:02 +02:00
parent cbe50dd028
commit 4229682d69
No known key found for this signature in database

View file

@ -64,7 +64,9 @@ onActivated(async () => {
});
async function setArrayVariables() {
members.value = await fetchMembers(route.params.serverId as string);
members.value = await fetchMembers(route.params.serverId as string).then((response) => {
return response.sort((a, b) => getDisplayName(a.user, a).localeCompare(getDisplayName(b.user, b)))
});
const guildUrl = `guilds/${route.params.serverId}`;
channels.value = await fetchWithApi(`${guildUrl}/channels`);
console.log("channels:", channels.value);