LiveList.sort(this.compare('StartDate')) //StartData:需要排序的时间
compare: function (property) {
return function (a, b) {
var value1 = (new Date(a[property])).getTime(); //得到毫秒数
var value2 = (new Date(b[property])).getTime(); //得到毫秒数
return value2 - value1;
}
}