From e684d7176e9550d2c47396f283ea84fd73c8807f Mon Sep 17 00:00:00 2001 From: Cesar Carvalho Date: Wed, 29 May 2019 09:31:07 -0300 Subject: [PATCH] =?UTF-8?q?Fix=20#2815=20-=20Crit=C3=A9rio=20secund=C3=A1r?= =?UTF-8?q?io=20de=20ordem=20de=20normas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/norma/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/norma/views.py b/sapl/norma/views.py index 2c34753c8..735d595a3 100644 --- a/sapl/norma/views.py +++ b/sapl/norma/views.py @@ -79,7 +79,7 @@ class NormaPesquisaView(FilterView): qs = qs.extra({ 'nm_i': "CAST(regexp_replace(numero,'[^0-9]','', 'g') AS INTEGER)", 'norma_letra': "regexp_replace(numero,'[^a-zA-Z]','', 'g')" - }).order_by('-data', 'nm_i', 'norma_letra') + }).order_by('-data', '-nm_i', 'norma_letra') return qs