mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
getting messages diff
This commit is contained in:
parent
e1117a0d91
commit
d935e9de42
8 changed files with 87 additions and 17 deletions
5
src/utils/date.ts
Normal file
5
src/utils/date.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
export const sortCreatedAtAsc = (a, b) =>
|
||||
new Date(a.created_at).getTime() - new Date(b.created_at).getTime();
|
||||
|
||||
export const sortCreatedAtDesc = (a, b) =>
|
||||
new Date(b.created_at).getTime() - new Date(a.created_at).getTime();
|
Loading…
Add table
Add a link
Reference in a new issue