From 33a07a0415cf0547f710948b4ebc45ff5517bf54 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 22 May 2024 23:13:43 +0200 Subject: [PATCH] feat(fallback): sort team members by their id as well --- shiftregister/fallback/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shiftregister/fallback/views.py b/shiftregister/fallback/views.py index 9d9adad..4ce94eb 100644 --- a/shiftregister/fallback/views.py +++ b/shiftregister/fallback/views.py @@ -45,7 +45,7 @@ def team_members(request): shift_count=Count("fallback_shifts") ) .filter(fallback_shifts__gt=0) - .order_by("name") + .order_by("name", "id") ) ) response.headers["Content-Type"] = "text/plain; charset=utf-8"