I figured out the answer to my own question =)
The original order I specified was:
'order' => array('Coupon.id' => 'DESC', 'Restaurant.tier'=>'ASC',
'Restaurant.name' => 'ASC'),
I changed order to:
'order' => array("Coupon.id != 0 DESC", 'Restaurant.tier ASC',
'Restaurant.name ASC'),
Hope this helps someone else trying to sort paginated results where
some of the results where the association between two tables is
optional.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---