Skip to content

Commit

Permalink
added the custom sort function
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhairya-Arora01 committed Jul 21, 2023
1 parent af037cc commit ce045ad
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 ce045ad

Please sign in to comment.