Can I sort a list of objects by a property of an associated object?
For example with the following class
class RosterSlot < ActiveRecord::Base
belongs_to :event
belongs_to :skill
belongs_to :person
end
I want to do something like RosterSlot.find(:all, :order => skill.name)
which means activerecord needs to do a join and order.
Any ideas?