Hi,
If all the dates are part of an array then they can be easily sorted by the below code.
var dates = [
'09/may/2014 13:45:21' ,'31/dec/2012 13:45:21' , '09/may/2014 1:46:21' , '09/may/2013 22:45:21' ,'12/jan/2014 03:00:21' ]
var sortedDates = dates.sort(function (var1, var2) {
var a= new Date(var1), b = new Date(var2);
if (a > b)
return 1;
if (a < b)
return -1;
return 0;
});