Yup... https://trac.cakephp.org/ticket/6218
On Apr 17, 8:38 am, George H <[email protected]> wrote: > Hi guys, > > I have a list of users displayed in my view in a table, and the > resultset is parsed by Paginator. I am also echoing $paginator->sort > () in my view. > > When I view the page the links work and they sort by the columns that > I have specified in my code. But I thought that if I was to click on > the same column again (eg. sorting by last logged in date) that it > would sort in descending order, click again sort ascending, etc. It's > not doing this – it just sticks to ascending order only. > > Is this the way it supposed to work? In the documentation (http:// > api.cakephp.org/class/paginator-helper#method-PaginatorHelpersort) it > says under return: > > "string A link sorting default by 'asc'. If the resultset is sorted > 'asc' by the specified key the returned link will sort by 'desc'." > > I've taken this to interpret as the link is like a toggle, but in my > case this isn't the case. > > You can see my code here:http://pastebin.com/f64b7e200 > > TIA. > -- George --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
