Hi,

I am trying to implemnet paging in my application that i developed in cakephp, if i fetch all the records and then implement paging, it works finr like:

$result = $this->User->find('all');
$this->set('users', $this->paginate('User'));

but when i try to implement ordering like:
$result = $this->Ecelebrity->find('all', array('order' => 'Ecelebrity.id DESC'));
the results are ordered,

but,
$this->set('ecelebs', $this->paginate('Ecelebrity'));
doesn't show ordered results.

does anyone know a way to implement paging on those ordered results?

Thanks in advance,
kul.