endoflinereport.py: sort generation during output

This commit is contained in:
mb06cs 2018-01-06 13:32:43 +01:00 committed by GitHub
parent ac593d814d
commit 6b42d71158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ class EndOfLineReport(Report):
self.doc.end_paragraph() self.doc.end_paragraph()
self.doc.start_table('EolTable', 'EOL-Table') self.doc.start_table('EolTable', 'EOL-Table')
for generation, handles in self.eol_map.items(): for generation, handles in sorted(self.eol_map.items()):
self.write_generation_row(generation) self.write_generation_row(generation)
for person_handle, pedigrees in handles.items(): for person_handle, pedigrees in handles.items():
self.write_person_row(person_handle) self.write_person_row(person_handle)