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());
|
const data = JSON.parse(text());
|
||||||
for (const notif of data)
|
for (const notif of data)
|
||||||
root.list.push(notifComp.createObject(root, notif));
|
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;
|
root.loaded = true;
|
||||||
}
|
}
|
||||||
onLoadFailed: err => {
|
onLoadFailed: err => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue