From 920cced1aafb44cdd3a288c2adaa99523afd479a Mon Sep 17 00:00:00 2001 From: The Stranjer <791672+TheStranjer@users.noreply.github.com> Date: Wed, 5 Jan 2022 09:06:26 -0700 Subject: [PATCH] Case insensitive sorting --- shards_of_power.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shards_of_power.rb b/shards_of_power.rb index 290984f..7907b40 100644 --- a/shards_of_power.rb +++ b/shards_of_power.rb @@ -165,7 +165,7 @@ class ShardsOfPower start_section "Credits" - spell_authors = spells.collect { |spell| spell.authors }.flatten.uniq.sort + spell_authors = spells.collect { |spell| spell.authors }.flatten.uniq.sort { |a, b| b.downcase <=> a.downcase } pdf.text "The following users have contributed to Shards of Power, in alphabetical order: #{spell_authors.to_list}" end @@ -359,4 +359,4 @@ class ShardsOfPower end shards_of_power = ShardsOfPower.new -shards_of_power.generate \ No newline at end of file +shards_of_power.generate