diff --git a/app/views/schools/show.html.erb b/app/views/schools/show.html.erb index d119208..4c40767 100644 --- a/app/views/schools/show.html.erb +++ b/app/views/schools/show.html.erb @@ -49,7 +49,7 @@
- <% @wrestlers.order("weight_id asc").each do |wrestler| %> + <% @wrestlers.sort_by{|w| w.weight.max}.each do |wrestler| %> <% if wrestler.school_id == @school.id %>