Skip to content

Commit

Permalink
Add missing sort to team results at ranking view
Browse files Browse the repository at this point in the history
  • Loading branch information
BGMP committed Jan 26, 2025
1 parent 65d19d2 commit 1939e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/rankings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def show
@racer_entries = @ranking.racer_result_entries
@count = 1

@team_entries = @ranking.team_result_entries
@team_entries = @ranking.team_result_entries.order_by(points: :desc)

respond_with @ranking do |format|
format.json { render :layout => false }
Expand Down

0 comments on commit 1939e3a

Please sign in to comment.