We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95abbed commit 653f507Copy full SHA for 653f507
1 file changed
docs-web/src/main/webapp/src/composables/useCoOccurrenceTree.ts
@@ -42,7 +42,7 @@ export function useCoOccurrenceTree(
42
} as TreeNode
43
})
44
.filter((n): n is TreeNode => n !== null)
45
- .sort((a, b) => ((b.data as any).coCount ?? 0) - ((a.data as any).coCount ?? 0))
+ .sort((a, b) => (a.label ?? '').localeCompare(b.label ?? ''))
46
: []
47
return {
48
key: tag.id,
@@ -52,7 +52,7 @@ export function useCoOccurrenceTree(
52
53
54
.filter((n) => (n.data as any).docCount > 0)
55
- .sort((a, b) => ((b.data as any).docCount ?? 0) - ((a.data as any).docCount ?? 0))
56
57
58
return { treeNodes, adjacency, tagMap }
0 commit comments