On Mar 17, 11:07 pm, Jeremy Evans <[email protected]> wrote: > I'm thinking of changing it so that group_and_count does not modify > the dataset's order. Currently, it sets the order to count > descending, which is a common desire, but not an exclusive one. Since > group_and_count returns a modified dataset, it's easy to chain it with > order: > > dataset.group_and_count(:column).order(:count.desc)
Seems pretty much unanimous, so I've made this change in my private branch. Note that group_and_count used to order by count ascending, not descending, so I was wrong in this earlier post. Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" 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/sequel-talk?hl=en.
