Sort list of users alphabetically
This commit is contained in:
parent
da30b02405
commit
876d46bc67
4 changed files with 4 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue