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 {