1 <% candidates = @election.candidates.sort.collect {|candidate| candidate.id} -%>
2 <table class="voterbox">
5 <% candidates.each do |candidate| -%>
6 <th><%= candidate -%></th>
8 <% candidates.each do |winner| -%>
10 <th><%= winner %></th>
11 <% candidates.each do |loser| -%>
12 <% if winner == loser -%>
15 <td><%= @election.condorcet_result.matrix[winner][loser] %></td>