From c6560ad6076abd7faa7981f3a87d4be26100e9ec Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Fri, 11 Nov 2016 00:08:35 +0300 Subject: [PATCH] fix less function for name sorting Mentioned in #43. --- nav.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nav.go b/nav.go index 3767ffe..748c4df 100644 --- a/nav.go +++ b/nav.go @@ -33,7 +33,7 @@ func getFilesSorted(path string) []*File { switch gOpts.sortby { case "name": sortFilesStable(fi, func(i, j int) bool { - return strings.EqualFold(fi[i].Name(), fi[j].Name()) + return strings.ToLower(fi[i].Name()) < strings.ToLower(fi[j].Name()) }) case "size": sortFilesStable(fi, func(i, j int) bool {