#99 ✓moved_to_github
Georg Ledermann

Multi column ordering

Reported by Georg Ledermann | July 10th, 2009 @ 05:31 AM

I would like to have ordering by multiple columns, where each of them can be ascending and descending. Example: "ORDER BY date ASC, id DESC"

What about creating scope like this:

Sadly, nesting orders with scopes is not possible in Rails 2.3.2, see here:

So it should be created as ONE scope.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Provides common named scopes and object based searching.

People watching this ticket