Skip to content

Commit ae3f1f7

Browse files
committed
Improvement: more natural sorting of people
1 parent 0dda019 commit ae3f1f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/update-contributors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def git_out(repo_dir: str, *args: str) -> str:
304304
# Write new content to PEOPLE_LIST_FILE
305305
people_sorted = sorted(
306306
current_contributors,
307-
key=lambda d: (d.get("name", "").split()[-1], d.get("name", ""))
307+
key=lambda d: (d.get("name", "").split()[-1].lower(), d.get("name", "").lower())
308308
)
309309
ordered_people = [
310310
dict(sorted(p.items(), key=lambda kv: SORT_WEIGHT.get(kv[0], 999))) for p in people_sorted

0 commit comments

Comments
 (0)