probably 'Pretensao.descricao ASC' instead of 'descricao ASC' ?
don't you have any SQL messages when turning DEBUG to 3 ?

++++++++
clement

On 2/24/07, Norman <[EMAIL PROTECTED]> wrote:
>
> Is there any black magic on sorting select boxes?
>
> In the controller, Im trying:
>
> $this->set('pretensoes', $this->Candidato->Pretensao-
> >generateList(null,'descricao ASC'));
>
> The related "pretensoes" table have a "descricao" column. Im using var
> $displayField = 'descricao' at the pretensoes model. I created the
> correct inflections for portuguese at inflections.php. However, the
> generateList result brings the values of the descricao field, but with
> the primary key field order. Any ideas?
>
> Thanks in advance,
> Norman
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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