1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00

Sort path groupings

This commit is contained in:
Andrew Kingston 2020-12-08 15:34:15 +00:00
parent 36ca1143e1
commit e472150f30

View file

@ -1,11 +1,12 @@
<script>
import { goto } from "@sveltech/routify"
import { store } from "builderStore"
import PathTree from "./PathTree.svelte"
$: paths = Object.keys($store.routes || {}).sort()
</script>
<div class="root">
{#each Object.keys($store.routes || {}) as path}
{#each paths as path}
<PathTree {path} route={$store.routes[path]} />
{/each}
</div>