From 62b82e5ed10dd1286cc08fa713f03e58b97f827e Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Wed, 13 Jun 2007 18:35:11 +0000 Subject: [PATCH] Sort the primary document on a ballot set to the top. - Legacy-Id: 379 --- ietf/idtracker/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/idtracker/views.py b/ietf/idtracker/views.py index db2bb974a..9331401c4 100644 --- a/ietf/idtracker/views.py +++ b/ietf/idtracker/views.py @@ -61,7 +61,7 @@ def search(request): if status != '': q_objs.append(Q(draft__status=status,rfc_flag=0)) matches = IDInternal.objects.all().filter(*q_objs) - matches = matches.order_by('cur_state', 'cur_sub_state', 'ballot') + matches = matches.order_by('cur_state', 'cur_sub_state', 'ballot', '-primary_flag') # # Now search by I-D exists, if there could be any results. # If searching by job owner, current state or substate, there