Is there any way in SQLite for ORDER BY by date, and the result will be sorted by time, not alphabetically?
For instance:
SELECT * FROM details GROUP BY date;
John | Smith | April 01, 2011
John | Smith | April 03, 2011
John | Smith | April 04, 2011
John | Smith | March 25, 2011
The march should arrive before April.
I suppose the answer here is to store my dates as long timestamps, however I was not sure that this could be done using SQLite.
Thank!
source
share