hats: sort hat groups without case sensitivity
This commit is contained in:
parent
a694b2a499
commit
3b14a9ba54
|
@ -22,8 +22,8 @@
|
||||||
<th>Link</th>
|
<th>Link</th>
|
||||||
</tr>
|
</tr>
|
||||||
<% bit = 0 %>
|
<% bit = 0 %>
|
||||||
<% @hat_groups.keys.sort.each do |hg| %>
|
<% @hat_groups.keys.sort_by{|a| a.downcase }.each do |hg| %>
|
||||||
<% @hat_groups[hg].sort_by{|hh| hh.user.username }.each do |hh| %>
|
<% @hat_groups[hg].sort_by{|hh| hh.user.username.downcase }.each do |hh| %>
|
||||||
<tr class="row<%= bit %>">
|
<tr class="row<%= bit %>">
|
||||||
<td><a href="/u/<%= hh.user.username %>"><%= hh.user.username
|
<td><a href="/u/<%= hh.user.username %>"><%= hh.user.username
|
||||||
%></a></td>
|
%></a></td>
|
||||||
|
|
Loading…
Reference in a new issue