From 6a7c1dc72bf06e4483191dc10504bbff67417aa5 Mon Sep 17 00:00:00 2001 From: Aswanth Vc Date: Thu, 6 Jun 2024 14:21:18 +0530 Subject: [PATCH] fix (launchpad) : Launchpad default sorting issue fix --- api/launchpad/launchpad_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/launchpad/launchpad_views.py b/api/launchpad/launchpad_views.py index 78df6627..919784ba 100644 --- a/api/launchpad/launchpad_views.py +++ b/api/launchpad/launchpad_views.py @@ -42,7 +42,7 @@ def get(self, request): district_name=F("user_organization_link_user__org__district__name"), state=F("user_organization_link_user__org__district__zone__state__name"), time_=Max("karma_activity_log_user__created_at"), - ) + ).order_by("-karma") paginated_queryset = CommonUtils.get_paginated_queryset( users,