From 6707768201bd3fc35d03621437ba3bc9badf2314 Mon Sep 17 00:00:00 2001 From: lemon-mint Date: Thu, 13 Jan 2022 07:59:54 +0900 Subject: [PATCH] sort capabilities list (#7) --- 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, ", ")) }