tools/litex_contributors: Sort contributors by names.

The git .csv generation is already sorted but this needs to be sorted again due
to the companies renaming.
This commit is contained in:
Florent Kermarrec 2022-09-07 10:07:12 +02:00
parent 0bd19fd026
commit 85e8aab5ae
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ def list_contributors(path):
contributors[name] = Author(email, int(year)) contributors[name] = Author(email, int(year))
# Export Contributors. # Export Contributors.
for name, info in contributors.items(): for name in sorted(contributors.keys(), key=lambda x:x.upper()):
info = contributors[name]
r = "Copyright (c) " r = "Copyright (c) "
if len(info.years) > 1: if len(info.years) > 1:
years = f"{info.years[0]}-{info.years[-1]}" years = f"{info.years[0]}-{info.years[-1]}"