Turns out the issue was having the order on the primary query and adding a pagination scope. Adding the order to the page scope solved the issue. Thanks for the ideas though!
On Jun 9, 12:39 pm, Emmanuel Gomez <[email protected]> wrote: > On Jun 9, 2011, at 8:32 AM, Jacob Basham wrote: > > > Howdy! > > > I have n through an association, but when I try to order them they get > > grouped by the through association. Is there a way to get them ordered > > without the grouping? > > I'm not sure if that is currently supported by DM. One possibility you could > try is: > > p = Person.first > p.comments(:order => Person.comments.created_at.asc) > > HTH, > Emmanuel -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
