hats: sort hat groups without case sensitivity

This commit is contained in:
joshua stein 2016-04-06 19:20:25 -05:00
parent a694b2a499
commit 3b14a9ba54

View file

@ -22,8 +22,8 @@
<th>Link</th>
</tr>
<% bit = 0 %>
<% @hat_groups.keys.sort.each do |hg| %>
<% @hat_groups[hg].sort_by{|hh| hh.user.username }.each do |hh| %>
<% @hat_groups.keys.sort_by{|a| a.downcase }.each do |hg| %>
<% @hat_groups[hg].sort_by{|hh| hh.user.username.downcase }.each do |hh| %>
<tr class="row<%= bit %>">
<td><a href="/u/<%= hh.user.username %>"><%= hh.user.username
%></a></td>