From 247f80921dc931bc7ccc23397d3630bbf6d3322b 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 635581c..25af861 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -3441,7 +3441,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",