fix(Guild): sort roles with the same position in the correct order (#3184)

This commit is contained in:
SpaceEEC
2019-04-08 14:06:50 +02:00
committed by GitHub
parent 831f988fe2
commit 923c945b4b

View File

@@ -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()
);
}
}