From 923c945b4bcacebafcd5e0210b485dfb702558c6 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Mon, 8 Apr 2019 14:06:50 +0200 Subject: [PATCH] fix(Guild): sort roles with the same position in the correct order (#3184) --- src/structures/Guild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index ca4055741..88b5d13d7 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -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() ); } }