I am trying to sort my array.
The array consists of data in time format.
Array:
\'9:15 AM\', \'10:20 AM\', \'02:15 PM\'
How
Implement the sort(compare) function and compare the date string using any arbitrary date :
Array.sort(function (a, b) { return Date.parse('01/01/2013 '+a) - Date.parse('01/01/2013 '+b) });
01/01/2013 is any arbitrary date.