From 11f215c9acf54ff42cc53732bf9111cca4b0b445 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 22 May 2019 14:05:41 -0300 Subject: [PATCH] Fixes #2802 --- 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 336c16933..2c34753c8 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