From 75b94f69fa0e4d1629571e1622ebdf27c963c43a Mon Sep 17 00:00:00 2001 From: The Stranjer <791672+TheStranjer@users.noreply.github.com> Date: Wed, 12 Jun 2019 09:21:29 -0400 Subject: [PATCH] Actually sort Conditions alphabetically by name --- shards_of_power.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shards_of_power.rb b/shards_of_power.rb index 518744b..22368dd 100644 --- a/shards_of_power.rb +++ b/shards_of_power.rb @@ -94,7 +94,7 @@ class ShardsOfPower @spells = Spell.spells @conditions = Condition.conditions - @conditions.sort_by(&:name) + @conditions.sort_by!(&:name) puts "Creating PDF object..." @pdf = Prawn::Document.new(:margin => 0)