diff --git a/web/frontend/src/StatsTableEntry.svelte b/web/frontend/src/StatsTableEntry.svelte index 6e96c1f..8871681 100644 --- a/web/frontend/src/StatsTableEntry.svelte +++ b/web/frontend/src/StatsTableEntry.svelte @@ -4,9 +4,14 @@ export let scope export let jobMetrics + function compareIds(a, b) { + return a.id - b.id; + } + $: series = jobMetrics .find(jm => jm.name == metric && jm.scope == scope) ?.metric.series.filter(s => s.hostname == host && s.statistics != null) + ?.sort(compareIds) {#if series == null || series.length == 0}