From 540de6f0fc0c6de89e158b1bac1db38ce1aeaa52 Mon Sep 17 00:00:00 2001 From: eribeiro Date: Wed, 10 Feb 2021 12:14:22 -0300 Subject: [PATCH] Fixes #3343 --- sapl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/utils.py b/sapl/utils.py index a9616a261..0104f3aed 100644 --- a/sapl/utils.py +++ b/sapl/utils.py @@ -897,7 +897,7 @@ def parlamentares_ativos(data_inicio, data_fim=None): parlamentares_id = mandatos_ativos.values_list( 'parlamentar_id', - flat=True).distinct('parlamentar_id') + flat=True).distinct('parlamentar_id').order_by('parlamentar_id') return Parlamentar.objects.filter(id__in=parlamentares_id)