diff --git a/src/themes/raw/gsi/parse-players.js b/src/themes/raw/gsi/parse-players.js index a992b6b..8f5c1f9 100644 --- a/src/themes/raw/gsi/parse-players.js +++ b/src/themes/raw/gsi/parse-players.js @@ -26,8 +26,12 @@ export const parsePlayers = () => Object.entries(gsiState.allplayers).map(([stea return [parsed] }).sort((a, b) => { - if (a.isGrenade && b.isGrenade) return grenadeOrderIndices[b.name] - grenadeOrderIndices[a.name] - if (a.isGrenade !== b.isGrenade) return a.isGrenade - b.isGrenade + if (a.isGrenade && b.isGrenade) { + return grenadeOrderIndices[a.name] - grenadeOrderIndices[b.name] + } + + if (a.isGrenade) return 1 + if (b.isGrenade) return -1 if (a.name > b.name) return 1 if (a.name < b.name) return -1