Credits Script: Fold case for organizations

Use `str.casefold` as sorting key for organizations, which arguably
reads more naturally when an organization has a uppercase name.

Ref !160527
This commit is contained in:
Damien Picard 2026-06-22 16:44:23 +02:00 • committed by Campbell Barton
parent 5c45585ae0
commit b718fce723

View file

@ -371,7 +371,7 @@ def parse_organizations(authors_file: str) -> tuple[str, ...] | None:
print("Error: Could not find \"{:s}\" in AUTHORS file: {:s}".format(section_end, authors_file))
return None
sorted_unique_organizations = tuple(sorted(set(orgs)))
sorted_unique_organizations = tuple(sorted(set(orgs), key=str.casefold))
return sorted_unique_organizations