mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
fix(Guild): sort roles with the same position in the correct order (#3184)
This commit is contained in:
@@ -1415,7 +1415,7 @@ class Guild {
|
|||||||
return collection.sort((a, b) =>
|
return collection.sort((a, b) =>
|
||||||
a.position !== b.position ?
|
a.position !== b.position ?
|
||||||
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()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user