From e20a93636849cce455fcebde2954d8e78488b1d1 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 20 May 2010 22:09:55 -0400 Subject: [PATCH] sort species list --- app/models/item.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/item.rb b/app/models/item.rb index 71ad9cdd..57653ea0 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -24,7 +24,7 @@ class Item < ActiveRecord::Base end def supported_species - @supported_species ||= species_support_ids.empty? ? Species.all : species_support_ids.map { |id| Species.find(id) } + @supported_species ||= species_support_ids.empty? ? Species.all : species_support_ids.sort.map { |id| Species.find(id) } end def self.search(query)