Hola CAT Shannon,
Lo he probado pero nada.
Al final he conseguido que salgo haciendo lo siguiente:
domain_controller.php
Código:
function add() {
if (!empty($this->data)) {
$this->Domain->create();
if ($this->Domain->save($this->data)) {
$this->Session->setFlash(__('The Domain has been saved', true));
$this->redirect(array('action'=>'index'));
} else {
$this->Session->setFlash(__('The Domain could not be saved. Please, try again.', true));
}
}
$providers = $this->Domain->Provider->find('list', array('order'=>'name asc'));
$periods = $this->Domain->Period->find('list', array('order'=>'name asc'));
$clients = $this->Domain->Client->find('list', array('order'=>'name asc'));
$this->set(compact('providers', 'periods', 'clients'));
}
No se si es la forma correcta, pero me di cuenta que la funcion add, me devolvía todos los clientes, y allí fue donde puse el order asc... Con lo fácil que era hacer todo eso sin cakephp !!
Gracias por tus respuestas !