From c0022b1f8637b9f0f855bf416f40559829342acc Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 18 Jan 2014 16:17:46 +0000 Subject: [PATCH] fix sorting edits --- pandora/edit/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora/edit/views.py b/pandora/edit/views.py index 62a15013..d0eaef70 100644 --- a/pandora/edit/views.py +++ b/pandora/edit/views.py @@ -172,7 +172,9 @@ def _order_clips(qs, sort): order = '%s%s' % (operator, key) order_by.append(order) if order_by: - qs = qs.order_by(*order_by, nulls_last=True) + #fixme use nulls_last + #qs = qs.order_by(*order_by, nulls_last=True) + qs = qs.order_by(*order_by) qs = qs.distinct() return qs