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!