I'm trying to sort some data by two columns, but it doesn't seem to be working. What I want are articles sorted by highest ratings first, then most recent date. As an example, this would be a sample output (left # is the rating, then the article title, then the article date)
50 | This article rocks | Feb 4, 2009 35 | This article is pretty good | Feb 1, 2009 5 | This Article isn't so hot | Jan 25, 2009
The relevant SQL I'm using is:
ORDER BY article_rating, article_time DESC
This seems to be sorting by article_time DESC. I can sort by one or the other, but not both, am I missing something obvious?