1
0
Fork 0
mirror of https://github.com/Luzifer/badge-gen.git synced 2024-11-09 22:00:05 +00:00

Ignore character case when sorting

This commit is contained in:
Knut Ahlers 2016-07-06 00:28:32 +02:00
parent ccd923a6ce
commit e10c432a34
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

2
app.go
View file

@ -75,7 +75,7 @@ type serviceHandlerDocumentationList []serviceHandlerDocumentation
func (s serviceHandlerDocumentationList) Len() int { return len(s) }
func (s serviceHandlerDocumentationList) Less(i, j int) bool {
return s[i].ServiceName < s[j].ServiceName
return strings.ToLower(s[i].ServiceName) < strings.ToLower(s[j].ServiceName)
}
func (s serviceHandlerDocumentationList) Swap(i, j int) { s[i], s[j] = s[j], s[i] }