diff --git a/internal/files/files.go b/internal/files/files.go index f63c84c..ef2e8ab 100644 --- a/internal/files/files.go +++ b/internal/files/files.go @@ -44,13 +44,13 @@ func SortByModifiedReverse(a, b File) int { func SortBySize(a, b File) int { as := getSortingSize(a) bs := getSortingSize(b) - return cmp.Compare(bs, as) + return cmp.Compare(as, bs) } func SortBySizeReverse(a, b File) int { as := getSortingSize(a) bs := getSortingSize(b) - return cmp.Compare(as, bs) + return cmp.Compare(bs, as) } func SortByName(a, b File) int {