Home › Forums › Back End › [Solved] Reverse order of array › Re: [Solved] Reverse order of array
April 2, 2010 at 9:55 pm
#73367
Irrorate
Member
I realise this was solved already, but wouldn’t it have been more efficient to sort the replies when executing the query?
Code:
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)?