Update Sidebar.tsx

This commit is contained in:
Gregory Schier
2026-03-12 15:43:52 -07:00
parent 024b0a3cd3
commit f91f40e3a1

View File

@@ -154,7 +154,10 @@ function buildTree(exchanges: HttpExchange[]): TreeNode<SidebarItem> {
children: [],
draggable: false,
};
for (const child of trie.children.values()) {
const sortedChildren = [...trie.children.values()].sort((a, b) =>
a.label.localeCompare(b.label),
);
for (const child of sortedChildren) {
node.children?.push(toTreeNode(child, node, depth + 1));
}
return node;