Commit 7ad798e8 by Lee Munkyeong

operationOpenDate追加

parent e99689a9
......@@ -2895,8 +2895,14 @@ CHK.createOperationList = function(operationList, isSearched = false) {
break;
case CHK_CONSTANT.SORT_TYPE.LAST_EDIT_DATE:
operationList.sort(function(a,b) {
if (a.lastEditDate < b.lastEditDate) return 1;
if (a.lastEditDate > b.lastEditDate) return -1;
if (!a.operationOpenDate) {
a.operationOpenDate = "1900-01-01 09:00:00";
}
if (!b.operationOpenDate) {
b.operationOpenDate = "1900-01-01 09:00:00";
}
if (a.operationOpenDate < b.operationOpenDate) return 1;
if (a.operationOpenDate > b.operationOpenDate) return -1;
return 0;
});
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment