add additional sort conditions to clip query, fixes #631
This commit is contained in:
parent
2971dd2d40
commit
6f9e9676cf
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ def parse_query(data, user):
|
||||||
|
|
||||||
def order_query(qs, sort):
|
def order_query(qs, sort):
|
||||||
order_by = []
|
order_by = []
|
||||||
|
sort += [
|
||||||
|
{'key': 'position', 'operator': '+'},
|
||||||
|
{'key': 'text', 'operator': '-'}
|
||||||
|
]
|
||||||
for e in sort:
|
for e in sort:
|
||||||
operator = e['operator']
|
operator = e['operator']
|
||||||
if operator != '-':
|
if operator != '-':
|
||||||
|
|
Loading…
Reference in a new issue