diff --git a/mflag/flag.go b/mflag/flag.go index 8b3d61e..f16f641 100644 --- a/mflag/flag.go +++ b/mflag/flag.go @@ -290,7 +290,7 @@ type flagSlice []string func (p flagSlice) Len() int { return len(p) } func (p flagSlice) Less(i, j int) bool { - pi, pj := p[i], p[j] + pi, pj := strings.ToLower(p[i]), strings.ToLower(p[j]) if pi[0] == '-' { pi = pi[1:] }