1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-05 22:21:26 +00:00

Ordered all pool bracket rounds by bracket_position_number

This commit is contained in:
2015-04-01 13:00:48 +00:00
parent d0277e1ab8
commit 9b9f6a0353
4 changed files with 23 additions and 23 deletions

View File

@@ -62,7 +62,7 @@ li.game{
<h5>Championship Bracket After Pool</h5>
<main id="bracket">
<ul class="round round-1">
<% @matches.select{|m|m.bracket_position == "Semis"}.each do |match| %>
<% @matches.select{|m|m.bracket_position == "Semis"}.sort_by{|m| m.bracket_position_number}.each do |match| %>
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>