Skip to content

Commit

Permalink
fix heat sort order for athlete page
Browse files Browse the repository at this point in the history
  • Loading branch information
konrad2002 committed Jun 9, 2024
1 parent ad297f0 commit 0aa2065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/start_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func GetStartsByMeetingAndAthlete(meeting string, athlete primitive.ObjectID) ([
}

sort.Slice(starts, func(i, j int) bool {
return starts[i].Heat.StartEstimation.After(starts[j].Heat.StartEstimation)
return starts[i].Heat.StartEstimation.Before(starts[j].Heat.StartEstimation)
})
return starts, nil
}
Expand Down Expand Up @@ -190,7 +190,7 @@ func GetStartsByAthlete(athlete primitive.ObjectID) ([]model.Start, error) {
}

sort.Slice(starts, func(i, j int) bool {
return starts[i].Heat.StartEstimation.After(starts[j].Heat.StartEstimation)
return starts[i].Heat.StartEstimation.Before(starts[j].Heat.StartEstimation)
})
return starts, nil
}
Expand Down

0 comments on commit 0aa2065

Please sign in to comment.