PageModule.prototype.sortTasksList = function (array) {
console.log("arrayADPSorting Array length: " + array.length);
//Column name based on which sorting need to happen goes in the next line
array.sort((a, b) => (a.po_task_number > b.po_task_number) ? 1 : -1);
console.log("Array after sorting!!!!!: " + array)
return array;
};
Comments