From 6181fe5efa8ac3fb3b9e528f3769b15e57c4438c Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 24 Oct 2024 13:44:52 -0700 Subject: [PATCH] feat: sort filenames in cmd_read_only for consistent behavior --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index 131a669d5..397956438 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -1166,7 +1166,7 @@ class Commands: return filenames = parse_quoted_filenames(args) - for pattern in filenames: + for pattern in sorted(filenames): # Expand tilde for home directory expanded_pattern = expanduser(pattern)