oops I forgot to ignore case in reverse name sort
This commit is contained in:
parent
0fb1cfa22a
commit
95970274d8
|
@ -60,7 +60,9 @@ func SortByName(a, b File) int {
|
|||
}
|
||||
|
||||
func SortByNameReverse(a, b File) int {
|
||||
return cmp.Compare(b.Name(), a.Name())
|
||||
an := strings.ToLower(a.Name())
|
||||
bn := strings.ToLower(b.Name())
|
||||
return cmp.Compare(bn, an)
|
||||
}
|
||||
|
||||
func SortByPath(a, b File) int {
|
||||
|
|
Loading…
Reference in a new issue