Skip to content

Commit

Permalink
developers: sort packages alphabetically
Browse files Browse the repository at this point in the history
Signed-off-by: Heiko Thiery <heiko.thiery@kontron.com>
  • Loading branch information
hthiery committed Jan 3, 2020
1 parent c2f9392 commit 4596558
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ def developer(developer):
if dev == developer:
packages[pkg_name] = (data['packages'][pkg_name])

packages = OrderedDict(sorted(packages.items(), key=lambda t: t[0]))

title = '{} packages maintained by {}'.format(len(packages), developer)

return render_template('packages.html',
Expand Down

0 comments on commit 4596558

Please sign in to comment.