diff --git a/main.py b/main.py index f1748a7..e99e0ee 100644 --- a/main.py +++ b/main.py @@ -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}")