{#if series == null || series.length == 0} No data {:else if series.length == 1 && scope == "node"} {series[0].statistics.min} {series[0].statistics.avg} {series[0].statistics.max} {:else} {#each ["id", "min", "avg", "max"] as field} {/each} {#each series as s, i} {/each}
sortByField(field)}> Sort
{s.id ?? i} {s.statistics.min} {s.statistics.avg} {s.statistics.max}
{/if}