feat(assist): fixed double sort
This commit is contained in:
parent
b541816c5d
commit
92e44a7af4
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue