How can i order  "MPTT" tree? I am using tree behaviour and currently
data is ordered by "lft" field.
I want to reorder tree by name (ASC)

Was trying $this->Cat->reorder(array('field' =>'Cat.name');
And it generates query:

SELECT `Cat`.`id`, `Cat`.`name`, `Cat`.`lft`, `Cat`.`rght` FROM `cats`
AS `Cat` WHERE 1 = 1 AND `Cat`.`parent_id` IS NULL ORDER BY
`Cat`.`name` ASC


Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to