fix less function for name sorting

Mentioned in #43.
This commit is contained in:
Gokcehan 2016-11-11 00:08:35 +03:00
parent d151334f8f
commit c6560ad607

2
nav.go
View File

@ -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 {