fix(Role): calculate position correctly when rawPositions are equal (#9871)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Vlad Frangu
2023-10-07 19:14:22 +03:00
committed by GitHub
parent f58628385c
commit 0529b2af95

View File

@@ -205,7 +205,7 @@ class Role extends Base {
(acc, role) =>
acc +
(this.rawPosition === role.rawPosition
? BigInt(this.id) > BigInt(role.id)
? BigInt(this.id) < BigInt(role.id)
: this.rawPosition > role.rawPosition),
0,
);