sort species list

This commit is contained in:
Emi Matchu 2010-05-20 22:09:55 -04:00
parent df18caf9c9
commit e20a936368

View file

@ -24,7 +24,7 @@ class Item < ActiveRecord::Base
end end
def supported_species 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 end
def self.search(query) def self.search(query)