style: seperate out sortUsers and sortMembers
This commit is contained in:
parent
4229682d69
commit
f6ede67c26
4 changed files with 16 additions and 6 deletions
|
@ -26,9 +26,7 @@
|
|||
<script lang="ts" setup>
|
||||
const { fetchFriends } = useApi();
|
||||
|
||||
const friends = await fetchFriends().then((response) => {
|
||||
return response.sort((a, b) => getDisplayName(a).localeCompare(getDisplayName(b)))
|
||||
})
|
||||
const friends = sortUsers(await fetchFriends())
|
||||
|
||||
const props = defineProps<{
|
||||
variant: string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue