From: Gael Le Mignot Date: Fri, 15 May 2020 15:17:10 +0000 (+0200) Subject: Hotfix by Yoan on messaging X-Git-Tag: 1.4.3~78^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0772a1bf45c4c9c09fda696dd6a7a7808ccba385;p=teleforma.git Hotfix by Yoan on messaging --- diff --git a/teleforma/templatetags/teleforma_tags.py b/teleforma/templatetags/teleforma_tags.py index a30ce449..751dea08 100644 --- a/teleforma/templatetags/teleforma_tags.py +++ b/teleforma/templatetags/teleforma_tags.py @@ -196,6 +196,7 @@ def get_all_correctors_with_courses(): 'name':corrector.last_name + " " + corrector.first_name, 'courses':json.dumps(list(correctors[corrector])) }) + result = sorted(result, key=lambda corrector:int(corrector['id'])) return result