refactor: drop redundant comment above the sort

The stable-sort behaviour is described in the Design decisions section
of the README.
This commit is contained in:
2026-08-25 21:28:00 +02:00
parent 03bec6404f
commit 5345684e1a

View File

@@ -41,8 +41,6 @@ def main() -> None:
# Also covers UnicodeDecodeError, which is a subclass of ValueError.
sys.exit(f"error: {error}")
# Most changed first. The sort is stable and keys only on the count,
# so lines with equal counts keep their original file order.
changed_lines.sort(key=lambda item: item[0], reverse=True)
for _, line in changed_lines: