mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 15:25:57 +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
|
||||
}
|
||||
],
|
||||
"editor.formatOnSave": false,
|
||||
"editor.formatOnSave": true,
|
||||
"eslint.autoFixOnSave": true
|
||||
}
|
||||
@ -133,11 +133,7 @@ export default {
|
||||
this.displayedNotifications = newNotifications
|
||||
.concat(this.displayedNotifications)
|
||||
.sort((a, b) => {
|
||||
return a.createdAt === b.createdAt
|
||||
? 0
|
||||
: new Date(a.createdAt) < new Date(b.createdAt)
|
||||
? 1
|
||||
: -1
|
||||
return new Date(b.createdAt) - new Date(a.createdAt)
|
||||
})
|
||||
this.updateOn = false
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user