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:
parent
ccd923a6ce
commit
e10c432a34
1 changed files with 1 additions and 1 deletions
2
app.go
2
app.go
|
@ -75,7 +75,7 @@ type serviceHandlerDocumentationList []serviceHandlerDocumentation
|
||||||
|
|
||||||
func (s serviceHandlerDocumentationList) Len() int { return len(s) }
|
func (s serviceHandlerDocumentationList) Len() int { return len(s) }
|
||||||
func (s serviceHandlerDocumentationList) Less(i, j int) bool {
|
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] }
|
func (s serviceHandlerDocumentationList) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue