I’m trying to order my results by what I got with eager loading.
there is a bit of code about what i want
@study_class = StudyClass.find(:all, :include => :teacher)
it is associated with an id, and i want to order my result by the teachers’ name, which is just inside the teacher table that is loaded there.
is it possible or will i have to reorder it with ruby code?