From e237d081201424c1f1f0f83f63718c5c922d3986 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 24 Nov 2021 14:23:50 +0100 Subject: [PATCH] fix sort by value of smart edits --- pandora/edit/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/edit/views.py b/pandora/edit/views.py index 09261310..060b3ded 100644 --- a/pandora/edit/views.py +++ b/pandora/edit/views.py @@ -190,7 +190,7 @@ def _order_clips(edit, sort): 'in': 'start', 'out': 'end', 'text': 'sortvalue', - 'volume': 'sortvolume', + 'volume': 'volume' if edit.type == 'smart' else 'sortvolume', 'item__sort__item': 'item__sort__public_id', }.get(key, key) order = '%s%s' % (operator, key)