From 80ed3b19d040a8772c6c6e029c1e3e075649b447 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 16 Jun 2012 23:29:06 +0200 Subject: [PATCH] order query --- pandora/sequence/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/sequence/views.py b/pandora/sequence/views.py index f995a944e..268ceb24b 100644 --- a/pandora/sequence/views.py +++ b/pandora/sequence/views.py @@ -70,6 +70,7 @@ def findSequences(request): query = parse_query(data, request.user) qs = query['qs'] if 'keys' in data: + qs = order_query(qs, query['sort']) qs = qs[query['range'][0]:query['range'][1]] response['data']['items'] = [p.json(data['keys'], request.user) for p in qs] elif 'position' in query: