From 85e8aab5aee90bb6cdd878e39e505ad108082779 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 7 Sep 2022 10:07:12 +0200 Subject: [PATCH] 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. --- litex/tools/litex_contributors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/tools/litex_contributors.py b/litex/tools/litex_contributors.py index ec2dce5d8..666e02fd7 100755 --- a/litex/tools/litex_contributors.py +++ b/litex/tools/litex_contributors.py @@ -61,7 +61,8 @@ def list_contributors(path): contributors[name] = Author(email, int(year)) # 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) " if len(info.years) > 1: years = f"{info.years[0]}-{info.years[-1]}"