
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:
order_by_date_asc_and_id_desc
Sadly, nesting orders with scopes is not possible in Rails
2.3.2, see here:
https://rails.lighthouseapp.com/projects/8994/tickets/2253-named_sc...
So it should be created as ONE scope.
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.
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.