From ed056b065e49f4ecd6fa65f8b33938e94ac7886e Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Wed, 9 Aug 2023 17:24:01 +0200 Subject: [PATCH] feat: add sorting in sub-node scopes in statsTable --- web/frontend/src/StatsTableEntry.svelte | 44 +++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/web/frontend/src/StatsTableEntry.svelte b/web/frontend/src/StatsTableEntry.svelte index 8871681..5e497d4 100644 --- a/web/frontend/src/StatsTableEntry.svelte +++ b/web/frontend/src/StatsTableEntry.svelte @@ -1,17 +1,49 @@ {#if series == null || series.length == 0} @@ -29,6 +61,14 @@ {:else} + + {#each ['id', 'min', 'avg', 'max'] as field} + + {/each} + {#each series as s, i}
sortByField(field)}> + Sort + +
{s.id ?? i}