Skip to content

Commit fa6e563

Browse files
authored
Merge pull request #9055 from Dhairya-Arora01/sortmerge
🐛 Alphabetically sorting release tool output
2 parents 504a22e + ce045ad commit fa6e563

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hack/tools/release/notes.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,11 @@ func run() int {
366366
}
367367
default:
368368
fmt.Println("## " + key)
369-
sort.Strings(mergeslice)
369+
sort.Slice(mergeslice, func(i int, j int) bool {
370+
str1 := strings.ToLower(mergeslice[i])
371+
str2 := strings.ToLower(mergeslice[j])
372+
return str1 < str2
373+
})
370374
for _, merge := range mergeslice {
371375
fmt.Println(merge)
372376
}

0 commit comments

Comments
 (0)