diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index 525e0cb..24a8286 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -13,6 +13,7 @@ class TournamentsController < ApplicationController @schools = @tournament.schools @weights = @tournament.weights @mats = @tournament.mats + @weights = @weights.sort_by{|x|[x.max]} end # GET /tournaments/new