Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add order_by to initial product geter
michal1b1244944f4c
diff --git a/saleor/product/views.py b/saleor/product/views.pyindex 0feaffd392..22e6f81421 100644--- a/saleor/product/views.py+++ b/saleor/product/views.py@@ -119,7 +119,7 @@ def category_index(request, path, category_id):return redirect('product:category', permanent=True, path=actual_path,category_id=category_id)products = products_with_details(- user=request.user).filter(categories__name=category)+ user=request.user).filter(categories__name=category).order_by('name')product_filter = ProductFilter(request.GET, queryset=products, category=category)products_paginated = get_paginator_items(