From dccae56fe75b1e14746772729bd1d72aa476ae7a Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 4 Sep 2021 11:41:23 +0200 Subject: [PATCH] tri depts sur page accueil --- app/views/scodoc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/scodoc.py b/app/views/scodoc.py index 47c51b6b..138da8f6 100644 --- a/app/views/scodoc.py +++ b/app/views/scodoc.py @@ -47,7 +47,9 @@ from app.views import scodoc_bp as bp @bp.route("/ScoDoc/index") def index(): "Page d'accueil: liste des départements" - depts = Departement.query.filter_by(visible=True).all() + depts = ( + Departement.query.filter_by(visible=True).order_by(Departement.acronym).all() + ) return render_template( "scodoc.html", title=sco_version.SCONAME,