add additional sort conditions to clip query, fixes #631

This commit is contained in:
j 2012-03-01 15:53:29 +01:00
parent 2971dd2d40
commit 6f9e9676cf

View file

@ -31,6 +31,10 @@ def parse_query(data, user):
def order_query(qs, sort):
order_by = []
sort += [
{'key': 'position', 'operator': '+'},
{'key': 'text', 'operator': '-'}
]
for e in sort:
operator = e['operator']
if operator != '-':