From 8506a01243425316fc38ea22b4bd4c45dc13a162 Mon Sep 17 00:00:00 2001 From: Felipe Vieira Date: Wed, 15 Feb 2012 13:46:49 +0000 Subject: [PATCH] ajustando ordem das perguntas --- sigi/apps/diagnosticos/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sigi/apps/diagnosticos/views.py b/sigi/apps/diagnosticos/views.py index c98e92d..ba6ad86 100644 --- a/sigi/apps/diagnosticos/views.py +++ b/sigi/apps/diagnosticos/views.py @@ -211,6 +211,7 @@ def diagnostico_pdf(request, id_diagnostico): schema.value = data schemas.append(schema) + schemas = sorted(schemas, key=lambda schema: schema.title) # sort by title schemas_by_categoria.append((categoria,schemas)) context = RequestContext(request, {