From 4dcba4c83232b5acebfadf0d016d3b0f85d04544 Mon Sep 17 00:00:00 2001 From: Ufuk Kayserilioglu Date: Tue, 9 May 2017 01:40:32 +0300 Subject: [PATCH] Fix sorting to work properly with lowercase/uppercase names --- config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.rb b/config.rb index 4f6b35b..45acdce 100644 --- a/config.rb +++ b/config.rb @@ -98,7 +98,7 @@ end if ENV['ANALYTICS_ID'] helpers do def themes - data.themes.sort_by { |theme| theme['name'] }.map do |theme| + data.themes.sort_by { |theme| theme['name'].downcase }.map do |theme| OpenStruct.new(theme.merge( slug: theme['name'].parameterize.underscore, digest: Digest::MD5.new.hexdigest(theme['colors'])