This commit is contained in:
2025-12-10 12:46:40 +09:00
parent d50a302d26
commit 575d63dcba
4 changed files with 13 additions and 3 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ const renderTagTree = (
</li>)
return [self,
...(tag.children?.flatMap (child => renderTagTree (child, nestLevel + 1, key)) ?? [])]
...(tag.children
?.sort ((a, b) => a.name < b.name ? -1 : 1)
.flatMap (child => renderTagTree (child, nestLevel + 2, key)) ?? [])]
}