I am trying to create a feature which essentially amounts to a Facebook style newsfeed. In order to order this newsfeed, I call and get all the information associated with all existing “stories” and orders them based on time.
However, I want to reorder these “stories” based on the outcome of a subsequent PHP call. How would you suggest that I go about this? I am really lost right now, so anything that could get me within the ball park would be great!
PHP usort might be what you’re looking for:
http://php.net/manual/en/function.usort.php