Trying to sort results of one-to-many relationship find

This is a plain association, no join table involved.

Try this in script/console and see if it solves your problem. The DB can easily take care of the sorting:

orders = Order.find(:all, :conditions => '...', :include => :payee, :order => 'payees.last_name')

Then,

orders.each { |o| puts o.payee.last_name }

-H