From 4adf5b24f84c68a0514697f3f95dfb2bacfbd90e Mon Sep 17 00:00:00 2001 From: wuzihao051119 Date: Thu, 26 Jun 2025 00:21:56 +0800 Subject: [PATCH] fix(web): folder sort --- web/src/lib/components/shared-components/tree/tree.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/lib/components/shared-components/tree/tree.svelte b/web/src/lib/components/shared-components/tree/tree.svelte index 6311b69831..53caff2e80 100644 --- a/web/src/lib/components/shared-components/tree/tree.svelte +++ b/web/src/lib/components/shared-components/tree/tree.svelte @@ -19,6 +19,7 @@ const onclick = (event: MouseEvent) => { event.preventDefault(); + node.children.sort((a, b) => a.value.localeCompare(b.value)); isOpen = !isOpen; };