Case insensitive sort for other contributors

This commit is contained in:
Bruno Alla 2020-08-10 18:18:09 +01:00
parent 673997a389
commit dbfcab2e12

View File

@ -133,7 +133,7 @@ def write_md_file(contributors):
template = Template(CONTRIBUTORS_TEMPLATE, autoescape=True)
core_contributors = [c for c in contributors if c.get("is_core", False)]
other_contributors = (c for c in contributors if not c.get("is_core", False))
other_contributors = sorted(other_contributors, key=lambda c: c["name"])
other_contributors = sorted(other_contributors, key=lambda c: c["name"].lower())
content = template.render(
core_contributors=core_contributors, other_contributors=other_contributors
)