Sort list of users alphabetically

This commit is contained in:
ricola 2026-01-09 15:46:32 -06:00
parent da30b02405
commit 876d46bc67
4 changed files with 4 additions and 4 deletions

View file

@ -97,7 +97,7 @@ end
<% end %>
</tr>
</thead>
<% @vote.ratings.collect { |rating| rating.user }.uniq.each do |user| %>
<% @vote.ratings.collect { |rating| rating.user }.uniq.sort_by { |user| user.email }.each do |user| %>
<tr>
<td><%= user.email %></td>
<% @vote.candidates.each do |candidate| %>