From b6b1bdd9313377244dd5792cda177a1441f8f93c Mon Sep 17 00:00:00 2001 From: lemon-mint Date: Thu, 13 Jan 2022 07:28:22 +0900 Subject: [PATCH] sort capabilities list --- tree.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tree.go b/tree.go index d44fbc4..220fa3a 100644 --- a/tree.go +++ b/tree.go @@ -103,5 +103,6 @@ func sortedKeys(m map[string]*Node) (keys []string) { } func goCapLine(name string, capabilities []string) string { + sort.Strings(capabilities) return fmt.Sprintf("%s (%s)\n", name, strings.Join(capabilities, ", ")) }