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",