diff --git a/backend/product/views.py b/backend/product/views.py index 5a460ff..94f0975 100644 --- a/backend/product/views.py +++ b/backend/product/views.py @@ -219,6 +219,7 @@ class AllProductsView(APIView): products = products.order_by('name') # Pagination + products.order_by('category') paginator = self.pagination_class() paginated_products = paginator.paginate_queryset(products, request) serializer = self.serializer_class(