April 2, 2010 at 9:55 pm #73367
I realise this was solved already, but wouldn’t it have been more efficient to sort the replies when executing the query?
SELECT * FROM posts ORDER BY timestamp DESC
That will select all the posts and order by the most recent timestamp (i.e. newest to oldest)?