Skip to content

Commit

Permalink
Stabilize standings
Browse files Browse the repository at this point in the history
  • Loading branch information
udovin committed Nov 13, 2023
1 parent 4bc76aa commit 8b5d883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/managers/contest_standings.go
Expand Up @@ -480,7 +480,7 @@ func stableParticipantLess(lhs, rhs ContestStandingsRow) bool {
if lhs.Score != rhs.Score {
return lhs.Score > rhs.Score
}
if lhs.Penalty != nil && rhs.Penalty != nil {
if lhs.Penalty != nil && rhs.Penalty != nil && *lhs.Penalty != *rhs.Penalty {
return *lhs.Penalty < *rhs.Penalty
}
return lhs.Participant.ID < rhs.Participant.ID
Expand Down

0 comments on commit 8b5d883

Please sign in to comment.