On Nov 22, 3:55 am, Johnny Cupcake <sparklew...@hotmail.com> wrote:
> OK, I decided to bake up a solution myself.  I don't contend that it
> is the fastest or the best, but it is simple and it seems to work.

Since MPTT doesn't care about sibling order, getting the "wrong"
result from generatetreelist just means your data is in the wrong
order in the db.

I'd recommend looking at the reorder method, which'll do what you want
to the data itself, unless you're wanting to sort by a different
field.

http://api.cakephp.org/view_source/tree-behavior/#l-628

AD

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to