Ok that one was lame, just added an 'order' => array('Country.name
ASC'), to my find and here we go...

:)


On 31 Mai, 00:15, DigitalDude <[email protected]> wrote:
> Ok I think I did it, and here's the find:
>
> $locations = $this->Location->find('list'. array(
>  'contain' => array('Country'),
>  'fields' => array(
>    'Location.id',
>    'Location.name',
>    'Country.name'),
>  'recursive' => 1
> ));
>
> The only problem i have now is, how can I sort the select with
> Country.name in alphabetical order? Would be VERY nice if someone
> could just give me a hint on that :)
--~--~---------~--~----~------------~-------~--~----~
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