mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
fix(Guild): sort roles with the same position in the correct order (#3184)
This commit is contained in:
parent
831f988fe2
commit
923c945b4b
1 changed files with 1 additions and 1 deletions
|
|
@ -1415,7 +1415,7 @@ class Guild {
|
|||
return collection.sort((a, b) =>
|
||||
a.position !== b.position ?
|
||||
a.position - b.position :
|
||||
Long.fromString(a.id).sub(Long.fromString(b.id)).toNumber()
|
||||
Long.fromString(b.id).sub(Long.fromString(a.id)).toNumber()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue