From ae339bc19c4b60abefbd8fdbd8523e7c5c3cbd34 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Wed, 13 Mar 2024 16:11:16 +0530 Subject: [PATCH] fix: order by grouped pagination --- apiserver/plane/utils/paginator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/plane/utils/paginator.py b/apiserver/plane/utils/paginator.py index 3eef1d720..7adebf90f 100644 --- a/apiserver/plane/utils/paginator.py +++ b/apiserver/plane/utils/paginator.py @@ -203,7 +203,7 @@ class GroupedOffsetPaginator(OffsetPaginator): row_number=Window( expression=RowNumber(), partition_by=[F(self.group_by_field_name)], - order_by=F(self.group_by_field_name).asc(), + order_by=(*self.key,), ) )