There's currently a ticket about this issue: http://trac.cakephp.org/ticket/5220

Until then, if you want to sort by calculated fields, one solution is
to override the paginate and optionally the paginateCount functions in
your controller. See here: 
http://book.cakephp.org/view/249/Custom-Query-Pagination

Just pass the $order argument directly into the call to 'find' as
shown on that page and it will order it by whatever is passed in
through the named 'sort' parameter.
--~--~---------~--~----~------------~-------~--~----~
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