diff options
author | David Gay <david@davidgay.org> | 2021-05-26 22:26:58 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-26 22:26:58 -0400 |
commit | 20ea3eb09d1c9847984e812df34c12dbdd48789b (patch) | |
tree | 755b7791f113cef87bea5bceddb44fdec1ea3c97 /app/models | |
parent | ed8575488c4e506c4a07f005855e47b92620646d (diff) |
Sort some things
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/character_item.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/character_item.rb b/app/models/character_item.rb index 6ee13ab..5bc27c9 100644 --- a/app/models/character_item.rb +++ b/app/models/character_item.rb @@ -11,5 +11,5 @@ class CharacterItem < ApplicationRecord end end - scope :ordered_by_item_name, -> { includes(:item).order("items.name") } + scope :ordered_by_item_name, -> { includes(:item).order("LOWER(items.name)").references(:items) } end |