Commit 220f3b0f by Johannes Edmeier

Fix sorting in journal to be descending by time

fixes #826
parent 1aed3f24
...@@ -119,9 +119,9 @@ ...@@ -119,9 +119,9 @@
}, },
async created() { async created() {
try { try {
this.addEvents((await Instance.fetchEvents()).data); const response = await Instance.fetchEvents();
this.addEvents(response.data.sort(compareBy(v => v.timestamp)));
this.error = null; this.error = null;
this.events.sort(compareBy(v => v.timestamp));
} catch (error) { } catch (error) {
console.warn('Fetching events failed:', error); console.warn('Fetching events failed:', error);
this.error = error; this.error = error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment