How would I sort an array of dates in chronological order? For example I have:
var dates = [
'03/03/2014',
'01/03/2014',
'02/03/2014',
'04/03/2014'
];
sortDates = sortDate(dates);
sortDate(array){
// ?
returnt arraySort;
}
I'd like the resultant array to look like:
[
'01/03/2014',
'02/03/2014',
'03/03/2014',
'04/03/2014'
]