Skip to content

Commit 62b82e5

Browse files
committed
Sort the primary document on a ballot set to the top.
- Legacy-Id: 379
1 parent 3379496 commit 62b82e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/idtracker/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def search(request):
6161
if status != '':
6262
q_objs.append(Q(draft__status=status,rfc_flag=0))
6363
matches = IDInternal.objects.all().filter(*q_objs)
64-
matches = matches.order_by('cur_state', 'cur_sub_state', 'ballot')
64+
matches = matches.order_by('cur_state', 'cur_sub_state', 'ballot', '-primary_flag')
6565
#
6666
# Now search by I-D exists, if there could be any results.
6767
# If searching by job owner, current state or substate, there

0 commit comments

Comments
 (0)