From b16a8101d52e80a97dbb525c4fcf524d9db96e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sat, 27 Jul 2024 21:17:41 -0700 Subject: [PATCH] reverse size sorting I don't know why I did that in the first place --- internal/files/files.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {