Sort team names in highlight output

Teams were being added in the order they were processed, which
could result in a jumbled list in the generated highlights page.

This sorts the teams by name to have some logical ordering to
the results to make it easier to locate specific team notes in
the output.

Change-Id: I91fef6e5e5aed71f285ba96d5458ad56568d1335
This commit is contained in:
Sean McGinnis 2018-02-02 12:09:54 -06:00 committed by Thierry Carrez
parent 6e7dc968ed
commit 7c393831f2

View File

@ -425,7 +425,7 @@ class HighlightsDirective(rst.Directive):
series_highlights = self._get_deliverable_highlights(series)
source_name = '<{}>'.format(__name__)
for team in series_highlights.keys():
for team in sorted(series_highlights.keys()):
app.info('[highlights] rendering %s highlights for %s' %
(team.title(), series))