ORDERING UNIX Timestamp DESC or ASC?

I have news that when creating, add the time / date creation time in timestamp unix format to the database. If I wanted to order recently, would I use ASC or DESC in my mysql query?

EDIT:

Thanks everyone for the answer. Now I got it. I will make Sarfraz the answer to the decision, as he was the first to answer, but thanks to everyone else :). I have to wait 11 minutes before I can take it as a decision.

+7
source share
5 answers

DESC - timestamps - this is the number "higher = new". Therefore, sorting by DESC (ending) will first contain the highest (newest) entries.

+9
source

If I wanted to order the latter first, would I use ASC or DESC in my mysql query?

You order DESC for the latest information or a higher date.

+2
source

Unix timestamp is the number of seconds since the era (December 1969). Thus, new messages have a larger number, thus sort DESC .

+2
source

You must execute the SQL query as shown below

 SELECT * FROM News ORDER BY date DESC 
+2
source

DESC will deliver the largest first to be the last.

+1
source

All Articles