> the best way to do this is via your sql code not your php code.
> You'll probably need to add "ORDER BY `name`' to the end of the sql
> statement or something similar.

actually, you want to do teh compete opposite with cake! you want to
use the order by argument in the find method, eg:

$this->Model->find('all', array(
        'order'=>'Model.name asc'
));

for more info see http://book.cakephp.org/view/449/find

hth

jon

-- 

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

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