From 8a8524a346b0ffd492c61ee252baf3eeb2810e48 Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Tue, 29 Mar 2022 10:14:34 +0200 Subject: [PATCH] ItemList: Order items by category the same way as in presale and CategoryList --- src/pretix/control/views/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/control/views/item.py b/src/pretix/control/views/item.py index 9c48f789f..31e8dcbef 100644 --- a/src/pretix/control/views/item.py +++ b/src/pretix/control/views/item.py @@ -102,7 +102,7 @@ class ItemList(ListView): ).annotate( var_count=Count('variations') ).prefetch_related("category").order_by( - F('category__position').desc(nulls_first=True), + F('category__position').asc(nulls_first=True), 'category', 'position' )