Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
fix(standings): looks like I had tiebreaker sort backwards :/
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Sep 25, 2020
1 parent 5ff6562 commit 1bc3007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/standings/standings.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class StandingsPage implements OnInit {
const aTiebreaker = this.tiebreakers.order.indexOf(a.id);
const bTiebreaker = this.tiebreakers.order.indexOf(b.id);

ret = bTiebreaker - aTiebreaker;
ret = aTiebreaker - bTiebreaker;
}

return ret;
Expand Down Expand Up @@ -160,7 +160,7 @@ export class StandingsPage implements OnInit {
sl_teams.sort((a: TeamData, b: TeamData) => {
let ret = b.wins - a.wins;
if (ret === 0) {
ret = this.tiebreakers.order.indexOf(b.id) - this.tiebreakers.order.indexOf(a.id);
ret = this.tiebreakers.order.indexOf(a.id) - this.tiebreakers.order.indexOf(b.id);
}

return ret;
Expand Down

0 comments on commit 1bc3007

Please sign in to comment.