oops I forgot to ignore case in reverse name sort

This commit is contained in:
Lilian Jónsdóttir 2024-07-27 21:11:17 -07:00
parent 0fb1cfa22a
commit 95970274d8

View file

@ -60,7 +60,9 @@ func SortByName(a, b File) int {
} }
func SortByNameReverse(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 { func SortByPath(a, b File) int {