From 9e75b78244e8a6134614532ff0c497e2d4f962df Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Wed, 14 Dec 2016 10:00:03 -0200 Subject: [PATCH] Fix #837 --- sapl/materia/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index cef5e6622..22dc20bee 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1512,6 +1512,9 @@ class PrimeiraTramitacaoEmLoteView(PermissionRequiredMixin, FilterView): context['unidade_local'] = [UnidadeTramitacao.objects.get( id=qr['tramitacao__unidade_tramitacao_destino'])] + context['object_list'] = context['object_list'].order_by( + 'ano', 'numero') + context['filter_url'] = ('&' + qr.urlencode()) if len(qr) > 0 else '' return context