parent
d151334f8f
commit
c6560ad607
2
nav.go
2
nav.go
@ -33,7 +33,7 @@ func getFilesSorted(path string) []*File {
|
|||||||
switch gOpts.sortby {
|
switch gOpts.sortby {
|
||||||
case "name":
|
case "name":
|
||||||
sortFilesStable(fi, func(i, j int) bool {
|
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":
|
case "size":
|
||||||
sortFilesStable(fi, func(i, j int) bool {
|
sortFilesStable(fi, func(i, j int) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user