Thank you Dave, I have fixed it in the simplest way possible: using the var $order variable in the model.
On 10 Ott, 16:54, "Dave Maharaj :: WidePixels.com" <d...@widepixels.com> wrote: > Try sort(); or another standard php sorting function. > > http://ca3.php.net/manual/en/function.sort.php > > -----Original Message----- > From: albe [mailto:radialremo...@gmail.com] > Sent: October-10-09 11:45 AM > To: CakePHP > Subject: Re: Use Set::sort > > Ok I have found the answer: in my cakephp version there's no sort function > in the set class! > How can I sort my array otherwise? Unfortunately I CAN'T update the cakePHP > version for this specific job. > > On 10 Ott, 15:25, albe <radialremo...@gmail.com> wrote: > > Hi, > > I have to sort an array and I have found out this simple way: > > >http://blogs.bigfish.tv/adam/2008/03/24/sorting-with-setsort-in-cakep... > > > Unfortunately, when I put the sorting code in my apllication's got I > > got: > > > "Fatal error: Call to undefined method Set::sort() in C:\... > > \controller.php on line 818" > > > Maybe the use of the Set class has to be declared... where? > > > Thank you in advance! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---