I have an array of posts that I need to sort by date. I use an rss reader to get the posts, but it fills the array by post, and not by data. I then need to parse the array to display the posts by date.
How can I do this? is there a way to insert the data into the array based on the timestamp? Or should I insert the data and then sort by the timestamps?
[0] => Array
(
[Image] => img45981a3031aad.jpg
[Title] => New post!
[Timestamp] => 1163832505
)
[1] => Array
(
[Image] => img45981a3031aad.jpg
[Title] => Hello world!
[Timestamp] => 1167594226
)
[2] => Array
(
[Image] => img45981a3031aad.jpg
[Title] => Yoyo!
[Timestamp] => 1167594201
)