diff --git a/utilities/utils/helper.js b/utilities/utils/helper.js index 9844fa7d8..7088d2b77 100644 --- a/utilities/utils/helper.js +++ b/utilities/utils/helper.js @@ -160,7 +160,7 @@ const sortPaginate = function (list, filters) { list.sort((a, b) => { const tA = getValue(a, "timestamp"); const tB = getValue(b, "timestamp"); - return tA > tB ? 1 : tA < tB ? -1 : 0; + return tA < tB ? 1 : tA > tB ? -1 : 0; }); if (filters.sort.order) { list.reverse();