From 20ea3eb09d1c9847984e812df34c12dbdd48789b Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 26 May 2021 22:26:58 -0400 Subject: Sort some things --- app/models/character_item.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models') 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 -- cgit v1.2.3