reverse size sorting

I don't know why I did that in the first place
This commit is contained in:
Lilian Jónsdóttir 2024-07-27 21:17:41 -07:00
parent 95970274d8
commit b16a8101d5

View file

@ -44,13 +44,13 @@ func SortByModifiedReverse(a, b File) int {
func SortBySize(a, b File) int { func SortBySize(a, b File) int {
as := getSortingSize(a) as := getSortingSize(a)
bs := getSortingSize(b) bs := getSortingSize(b)
return cmp.Compare(bs, as) return cmp.Compare(as, bs)
} }
func SortBySizeReverse(a, b File) int { func SortBySizeReverse(a, b File) int {
as := getSortingSize(a) as := getSortingSize(a)
bs := getSortingSize(b) bs := getSortingSize(b)
return cmp.Compare(as, bs) return cmp.Compare(bs, as)
} }
func SortByName(a, b File) int { func SortByName(a, b File) int {