Follow Roberts sorting suggestion

This commit is contained in:
Wolfgang Huß 2019-09-30 10:06:51 +02:00
parent dc0b8d69a2
commit e24d08f35b
2 changed files with 2 additions and 6 deletions

View File

@ -7,6 +7,6 @@
"autoFix": true
}
],
"editor.formatOnSave": false,
"editor.formatOnSave": true,
"eslint.autoFixOnSave": true
}

View File

@ -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