diff --git a/ci/summarizer.py b/ci/summarizer.py index 80d20650561675167c6aea55a3c40bb9fcee4334..6436d36dd59a887519a04c7973304bf90cad8a08 100755 --- a/ci/summarizer.py +++ b/ci/summarizer.py @@ -57,7 +57,7 @@ class Summarizer(object): print(self.bold + self.red + "=================================================\n" + self.end) print(self.bold + self.red + " Static analysis results: Error Summary \n" + self.end) for file_name in errors: - for error in sorted(errors[file_name], key=lambda x: x[0]): + for error in sorted(errors[file_name], key=lambda x: int(x[0])): name_string = f"{self.bold}{self.red}File {self.yellow}{file_name}{self.red}" rule_violated_string = f"violates rule {self.yellow}#{error[1]}{self.red} of the MISRA C 2012 standard" line_number_string = f"at line {self.yellow}{error[0]}{self.end}"