Sorting with relationships? [total noob]

Try this:

mythings = Thing.find(:all, :include => :color, :order => 'colors.name
asc')

-- Josh

Nick Norton wrote:

Try this:

mythings = Thing.find(:all, :include => :color, :order => 'colors.name
asc')

That will work, but really all you need is :joins. You just need to
join the colours table, not do all the instantiating of the extra
objects.

Fred