feat: sort friends alphabetically

This commit is contained in:
Twig 2025-07-16 10:22:04 +02:00
parent 0f583f085e
commit ace66980bf
No known key found for this signature in database
3 changed files with 17 additions and 3 deletions

View file

@ -26,7 +26,9 @@
<script lang="ts" setup>
const { fetchFriends } = useApi();
const friends = await fetchFriends()
const friends = await fetchFriends().then((response) => {
return response.sort((a, b) => getDisplayName(a).localeCompare(getDisplayName(b)))
})
const props = defineProps<{
variant: string