From 70327603600bca6ea57342d8b2fdc578c7947f9c Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Fri, 6 Feb 2015 12:37:30 -0500 Subject: [PATCH] Organized weights on tournament page. --- app/controllers/tournaments_controller.rb | 1 + 1 file changed, 1 insertion(+) 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