From 8948fe2f31e0f7e9a20e4b08201f22523b13d8e6 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 2 Feb 2017 16:17:21 -0200 Subject: [PATCH] Ordena resultado de pesquisa por ano, tipo.sigla e numero, nesta ordem --- sapl/materia/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index e177c9301..404186591 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1157,7 +1157,7 @@ class MateriaLegislativaPesquisaView(FilterView): qs = qs.filter(id__in=lista).distinct() if 'o' in self.request.GET and not self.request.GET['o']: - qs = qs.order_by('-ano', '-numero') + qs = qs.order_by('-ano', 'tipo__sigla', '-numero') kwargs.update({ 'queryset': qs,