fix: update sortMembers to use the new getDisplayName
This commit is contained in:
parent
cf84ba9d0a
commit
834c9ac343
1 changed files with 1 additions and 1 deletions
|
@ -2,6 +2,6 @@ import type { GuildMemberResponse } from "~/types/interfaces";
|
||||||
|
|
||||||
export default (members: GuildMemberResponse[]): GuildMemberResponse[] => {
|
export default (members: GuildMemberResponse[]): GuildMemberResponse[] => {
|
||||||
return members.sort((a, b) => {
|
return members.sort((a, b) => {
|
||||||
return getDisplayName(a.user, a).localeCompare(getDisplayName(b.user, b))
|
return getDisplayName(a).localeCompare(getDisplayName(b))
|
||||||
})
|
})
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue