Case insensitive sorting

This commit is contained in:
The Stranjer 2022-01-05 09:06:26 -07:00
parent 6d83394c3a
commit 920cced1aa

View File

@ -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
shards_of_power.generate