Skip to content

Commit

Permalink
Merge pull request #9055 from Dhairya-Arora01/sortmerge
Browse files Browse the repository at this point in the history
🐛 Alphabetically sorting release tool output
  • Loading branch information
k8s-ci-robot committed Jul 24, 2023
2 parents 504a22e + ce045ad commit fa6e563
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hack/tools/release/notes.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,11 @@ func run() int {
}
default:
fmt.Println("## " + key)
sort.Strings(mergeslice)
sort.Slice(mergeslice, func(i int, j int) bool {
str1 := strings.ToLower(mergeslice[i])
str2 := strings.ToLower(mergeslice[j])
return str1 < str2
})
for _, merge := range mergeslice {
fmt.Println(merge)
}
Expand Down

0 comments on commit fa6e563

Please sign in to comment.