Always sort workflows tree (#1456)

* Always sort workflows tree

* nit

* nit

* Add tests

* nit

* nit
This commit is contained in:
Chenlei Hu
2024-11-07 11:29:29 -05:00
committed by GitHub
parent daf94d74d5
commit 8ae9210298
4 changed files with 144 additions and 14 deletions

View File

@@ -104,7 +104,7 @@ const searchQuery = ref<string>('')
const root = computed(() => {
const root = filteredRoot.value || nodeDefStore.nodeTree
return alphabeticalSort.value ? sortedTree(root) : root
return alphabeticalSort.value ? sortedTree(root, { groupLeaf: true }) : root
})
const renderedRoot = computed<TreeExplorerNode<ComfyNodeDefImpl>>(() => {