1
0
Fork 0
forked from OpenNeo/impress

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
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)