feat: sort filenames before adding to chat

This commit is contained in:
Paul Gauthier (aider) 2024-10-24 13:43:01 -07:00
parent e0949bff69
commit 239302a219

View file

@ -725,7 +725,7 @@ class Commands:
except OSError as e:
self.io.tool_error(f"Error creating file {fname}: {e}")
for matched_file in all_matched_files:
for matched_file in sorted(all_matched_files):
abs_file_path = self.coder.abs_root_path(matched_file)
if not abs_file_path.startswith(self.coder.root) and not is_image_file(matched_file):