sort dashboard home event list

This commit is contained in:
LouisLam 2021-07-01 17:05:02 +08:00
parent a6b5986dd6
commit ef028794ac
1 changed files with 10 additions and 0 deletions

View File

@ -117,6 +117,16 @@ export default {
}
}
result.sort((a, b) => {
if (a.time > b.time) {
return -1;
} else if (a.time < b.time) {
return 1;
} else {
return 0;
}
});
return result;
}
}