📅  最后修改于: 2022-03-11 15:02:19.991000             🧑  作者: Mango
arr = arr.sort(function (a, b) {
var dateA = new Date(a.date_prop).getTime();
var dateB = new Date(b.date_prop).getTime();
return dateA < dateB ? 1 : -1;
});