From 95970274d83ab75d733fa2f7176dcf63008f7a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sat, 27 Jul 2024 21:11:17 -0700 Subject: [PATCH] oops I forgot to ignore case in reverse name sort --- internal/files/files.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/files/files.go b/internal/files/files.go index 2505e1e..f63c84c 100644 --- a/internal/files/files.go +++ b/internal/files/files.go @@ -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 {