Skip to content

Commit

Permalink
Richtige Reihenfolge auch für komische Namen
Browse files Browse the repository at this point in the history
  • Loading branch information
olikami committed May 10, 2022
1 parent 3c2b307 commit 2367cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def name_formatter(nickname, firstname, lastname):
):
people.append(get_people_details(person_id, group_id))

people.sort(key=lambda p: p["last_name"] + p["first_name"])
people.sort(key=lambda p: p["last_name"].replace("von ","") + p["first_name"])

ahv_regex = re.compile("\d{3}.\d{4}.\d{4}.\d{2}")

Expand Down

0 comments on commit 2367cea

Please sign in to comment.