Skip to content

Commit f4d1a07

Browse files
committed
Rank all overall stats from 32 to 1.
1 parent ce30bf5 commit f4d1a07

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/data/standings.json.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ function createTeamRankings(teams, availablePeriods) {
418418

419419
// Assign rankings with ties handled properly
420420
const statRankings = {};
421-
let currentRank = 1;
421+
let currentRank = overallStandings.length;
422422
let previousValue = null;
423423

424424
teamStats.forEach((teamStat, index) => {
@@ -428,7 +428,7 @@ function createTeamRankings(teams, availablePeriods) {
428428
previousValue === teamStat.value;
429429

430430
if (index > 0 && !valuesEqual) {
431-
currentRank = index + 1;
431+
currentRank = overallStandings.length - index;
432432
}
433433

434434
statRankings[teamStat.team] = currentRank;

0 commit comments

Comments
 (0)