From 17b514510bfe9e7f19a061b28b513f18b6408ab6 Mon Sep 17 00:00:00 2001 From: Alexei Yuzhakov Date: Sun, 3 Feb 2019 21:50:08 +0700 Subject: [PATCH] fix: case dependency and sorting order (#661) (#662) --- files/listing.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/listing.go b/files/listing.go index 116b882b..d09f67e1 100644 --- a/files/listing.go +++ b/files/listing.go @@ -2,6 +2,7 @@ package files import ( "sort" + "strings" "github.com/maruel/natural" ) @@ -68,7 +69,7 @@ func (l byName) Less(i, j int) bool { return false } - return natural.Less(l.Items[i].Name, l.Items[j].Name) + return natural.Less(strings.ToLower(l.Items[j].Name), strings.ToLower(l.Items[i].Name)) } // By Size