From 3b14a9ba54b646953ac07cf3cc1437336a41d98c Mon Sep 17 00:00:00 2001 From: joshua stein Date: Wed, 6 Apr 2016 19:20:25 -0500 Subject: [PATCH] hats: sort hat groups without case sensitivity --- app/views/hats/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/hats/index.html.erb b/app/views/hats/index.html.erb index f4cf945..08a33d8 100644 --- a/app/views/hats/index.html.erb +++ b/app/views/hats/index.html.erb @@ -22,8 +22,8 @@ Link <% 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| %> <%= hh.user.username %>