Files
rails/activerecord/test/models
Neeraj Singh 91fec0d24d order should always be concatenated.
order that is declared first has highest priority in all cases.

Here are some examples.

Car.order('name desc').find(:first, :order => 'id').name

Car.named_scope_with_order.named_scope_with_another_order

Car.order('id DESC').scoping do
  Car.find(:first, :order => 'id asc')
end

No special treatment to with_scope or scoping.

Also note that if default_scope declares an order then the order
declared in default_scope has the highest priority unless
with_exclusive_scope is used.

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-05 08:13:42 -03:00
..
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2010-08-14 18:49:04 -03:00
2010-09-05 08:13:42 -03:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2010-07-25 23:30:27 +02:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2010-01-18 04:38:19 +05:30
2008-01-18 07:27:03 +00:00
2010-05-21 16:20:56 +02:00
2008-05-01 15:03:16 -05:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00
2008-01-18 07:27:03 +00:00