From e10c432a34c4e2841258aee97ec5ddedc43f2708 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 6 Jul 2016 00:28:32 +0200 Subject: [PATCH] Ignore character case when sorting --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index da19121..e5dd7a2 100644 --- a/app.go +++ b/app.go @@ -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] }