Skip to content
This repository has been archived by the owner on May 21, 2023. It is now read-only.

Commit

Permalink
sort capabilities list (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon-mint authored Jan 12, 2022
1 parent c495896 commit 6707768
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ", "))
}

0 comments on commit 6707768

Please sign in to comment.