From 2367ceadf088a606a79ce5f45128c2bb546d7846 Mon Sep 17 00:00:00 2001 From: Oliver Kamer Date: Tue, 10 May 2022 19:34:00 +0200 Subject: [PATCH] =?UTF-8?q?Richtige=20Reihenfolge=20auch=20f=C3=BCr=20komi?= =?UTF-8?q?sche=20Namen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")