{#if groupFunc} {#each sortGroups ? _.sortBy(_.keys(groups)) : _.keys(groups) as group} {/each} {:else} {#each list as data} {/each} {/if}