Use STR_TO_DATE()
to convert it into a date first and then sort by it:
SELECT STR_TO_DATE(datecol, "%H:%i, %d %M %Y") AS newdate
-- ...
ORDER BY newdate DESC
質問
How can I order in MySQL a column with date values like this "06:21, 28 February 2014"?
解決
Use STR_TO_DATE()
to convert it into a date first and then sort by it:
SELECT STR_TO_DATE(datecol, "%H:%i, %d %M %Y") AS newdate
-- ...
ORDER BY newdate DESC