From 05d2146b9799c3b51d389203e516d61ee80d6a75 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 12 Jul 2024 12:16:22 -0500 Subject: [PATCH] fix: add key to remove sort --- src/viv/viv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index a107b4c..27fade8 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -3431,7 +3431,7 @@ class Viv: if cli.is_file(): to_remove.append(cli) - to_remove = list(set(to_remove)) + to_remove = sorted(set(to_remove), key=lambda p: p.is_file()) if confirm( "Remove the above files/directories?", "\n".join(f" - {a.red}{p}{a.end}" for p in to_remove) + "\n",