From 3725ce18824885d47dbdc82d95afb7db38495f40 Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 2 Feb 2024 15:51:37 +0300 Subject: [PATCH] 0.12.10 routes order --- RoutesApp/funcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RoutesApp/funcs.py b/RoutesApp/funcs.py index b7859e3..3a2e3fd 100644 --- a/RoutesApp/funcs.py +++ b/RoutesApp/funcs.py @@ -223,7 +223,7 @@ def get_routes_Dict(user=None, data=None): if key == 'to_el': to_el = int(val) - routes = Route.objects.filter(**kwargs).order_by('departure_DT', 'arrival_DT', '-modifiedDT') + routes = Route.objects.filter(**kwargs).order_by('-departure_DT', '-arrival_DT', '-modifiedDT') routes_count = routes.count() if from_el and to_el: