Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] Reverse order of array Re: [Solved] Reverse order of array

#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)?