return $this->PlanDetail->find('all', array('order' =>
array('PlanDetail.name DESC'), 'limit' => 10));


On Sat, Feb 12, 2011 at 11:55 PM, cricket <[email protected]> wrote:

> On Sat, Feb 12, 2011 at 10:54 AM, OldWest <[email protected]> wrote:
> > I do not know why my DESC sort query is not working?? According to the
> > manual and other sources, it should be working fine:
> >
> > function pd_list() {
> >
> >     return $this->PlanDetail->find('all', array('order' =>
> 'PlanDetail.name
> > DESC', 'limit' => 10));
> >
> > }
> >
>
> Try 'order' => array('PlanDetail.name' => 'DESC')
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to