1 parent
d151334f8f
commit
c6560ad607
1 file changed
+1
-1
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user