mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
refactor: improve sorting of ranked definitions
This commit is contained in:
parent
aec8550e56
commit
be5012db96
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ class RepoMap:
|
|||
ranked_definitions[(dst, ident)] += data["rank"]
|
||||
|
||||
ranked_tags = []
|
||||
ranked_definitions = sorted(ranked_definitions.items(), reverse=True, key=lambda x: x[1])
|
||||
ranked_definitions = sorted(ranked_definitions.items(), reverse=True, key=lambda x: (x[1], x[0]))
|
||||
|
||||
# dump(ranked_definitions)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue