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

@ -40,7 +40,7 @@
<% unless @vote.ratings.blank? %>
<ul>
<% @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| %>
<li>
<%= user.email %>
<a href="/admin/votes/<%= @vote.id %>/ratings/<%= user.id %>/delete"><%= _("Delete") %></a>