diff options
Diffstat (limited to 'coverage/xmlreport.py')
-rw-r--r-- | coverage/xmlreport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py index d4b102f..f5a4c1b 100644 --- a/coverage/xmlreport.py +++ b/coverage/xmlreport.py @@ -116,7 +116,7 @@ class XmlReporter(Reporter): branch_stats = analysis.branch_stats() # For each statement, create an XML 'line' element. - for line in analysis.statements: + for line in sorted(analysis.statements): xline = self.xml_out.createElement("line") xline.setAttribute("number", str(line)) |