diff --git a/sigi/apps/diagnosticos/models.py b/sigi/apps/diagnosticos/models.py index 59deb1a..9f9593a 100644 --- a/sigi/apps/diagnosticos/models.py +++ b/sigi/apps/diagnosticos/models.py @@ -120,6 +120,7 @@ class Diagnostico(BaseEntity): schemas = super(Diagnostico,self).get_schemata(*args, **kwargs) if category: schemas = [s for s in schemas if s.categoria_id == category] + schemas= sorted(schemas, lambda x,y: cmp(x.title, y.title)) return schemas