Sort reports by line and column

Originally the reports have been sorted by column and message (without the
error code), so it didn't order after the line number.

Closes #196
This commit is contained in:
Fabian Neundorf 2016-07-28 17:25:13 +00:00
parent 53455fdff7
commit ad3b486909
2 changed files with 69 additions and 1 deletions

View file

@ -306,7 +306,7 @@ class Manager(object):
"""
results_reported = results_found = 0
for checker in self.checkers:
results = sorted(checker.results, key=lambda tup: (tup[2], tup[3]))
results = sorted(checker.results, key=lambda tup: (tup[1], tup[2]))
results_reported += self._handle_results(checker.display_name,
results)
results_found += len(results)