diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport index 331e97cf3..978eb45b5 100755 --- a/htmlreport/cppcheck-htmlreport +++ b/htmlreport/cppcheck-htmlreport @@ -273,7 +273,7 @@ if __name__ == '__main__': # Generate a HTML file with syntax highlighted source code for each # file that contains one or more errors. print('Processing errors') - for filename, data in files.items(): + for filename, data in sorted(files.items()): htmlfile = data['htmlfile'] errors = data['errors'] @@ -327,7 +327,7 @@ if __name__ == '__main__': output_file.write('') output_file.write( '') - for filename, data in files.items(): + for filename, data in sorted(files.items()): output_file.write( "" % (data['htmlfile'], filename))
LineIdSeverityMessage
%s