notifs: fix persistence sorting order
This commit is contained in:
parent
5f1ffb32f4
commit
ef3bcc290a
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ Singleton {
|
|||
const data = JSON.parse(text());
|
||||
for (const notif of data)
|
||||
root.list.push(notifComp.createObject(root, notif));
|
||||
root.list.sort((a, b) => a.time - b.time);
|
||||
root.list.sort((a, b) => b.time - a.time);
|
||||
root.loaded = true;
|
||||
}
|
||||
onLoadFailed: err => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue