mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Follow Roberts sorting suggestion
This commit is contained in:
parent
dc0b8d69a2
commit
e24d08f35b
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -7,6 +7,6 @@
|
|||||||
"autoFix": true
|
"autoFix": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"editor.formatOnSave": false,
|
"editor.formatOnSave": true,
|
||||||
"eslint.autoFixOnSave": true
|
"eslint.autoFixOnSave": true
|
||||||
}
|
}
|
||||||
@ -133,11 +133,7 @@ export default {
|
|||||||
this.displayedNotifications = newNotifications
|
this.displayedNotifications = newNotifications
|
||||||
.concat(this.displayedNotifications)
|
.concat(this.displayedNotifications)
|
||||||
.sort((a, b) => {
|
.sort((a, b) => {
|
||||||
return a.createdAt === b.createdAt
|
return new Date(b.createdAt) - new Date(a.createdAt)
|
||||||
? 0
|
|
||||||
: new Date(a.createdAt) < new Date(b.createdAt)
|
|
||||||
? 1
|
|
||||||
: -1
|
|
||||||
})
|
})
|
||||||
this.updateOn = false
|
this.updateOn = false
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user