Skip to content

Commit ce045ad

Browse files
added the custom sort function
1 parent af037cc commit ce045ad

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)