I'm in the process of building a phonegap app that uses websql.
Within my phonegap DB I have recordings, the table looks like this
ID, ref, startdate, enddate .... etc
On one of my apps pages I get all these records and append them to a listview (I'm using JQM).
I want to order these by the start date, but its not as simple as just using a SQL ORDER BY as the dates are stored in the Javascript date object format, for example - Tue Jan 29 15:59:02 GMT+0000(GMT). I want to order these by decending date order before I append them to my list.
Could someone point me in the right direction of how to achieve this with javascript?
Thanks in advance!
Date()to create a date object as well. Really it should be down to what you use the most in the project, but I usually start at the bottom (database) and work up from there.