Commit 13aff343 by NGUYEN HOANG SON

#48155 : fix sort by report type

parent 10f87702
...@@ -3201,8 +3201,8 @@ CHK.createOperationList = function(operationList, isSearched = false) { ...@@ -3201,8 +3201,8 @@ CHK.createOperationList = function(operationList, isSearched = false) {
break; break;
case CHK_CONSTANT.SORT_TYPE.TYPE: case CHK_CONSTANT.SORT_TYPE.TYPE:
operationList.sort(function(a,b) { operationList.sort(function(a,b) {
if (a.operationType < b.operationType) return 1; if (a.reportType > b.reportType) return 1;
if (a.operationType > b.operationType) return -1; if (a.reportType < b.reportType) return -1;
return 0; return 0;
}); });
break; 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