/*
** Controller
*/
$statuses1 = $this->Twitter->statusesUserTimeline("TCarlsen",NULL,NULL,
5);
$statuses2 = $this->Twitter->statusesUserTimeline("kfriis",NULL,NULL,
5);$statuses = array_merge_recursive($statuses1,$statuses2); /* ** $statuses array looks like this: ** http://gist.github.com/307590 ** and the I'm trying to sort it after id (clean number) */ $result = Set::sort($statuses, 'Statuses.Status.{n}.id', 'desc'); /* ** sets it to view */ $this->set('statuses',$result); /* ** view */ echo "<pre>"; print_r($statuses); echo "</pre>"; /* ** now I'm getting this fail from cake : http://gist.github.com/307592 ** you can see that it is sorting ($keys is looking right) ** but way will it not make the new array then :S ?? ** hope someone can help me, thx */ Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
