Parcourir la source

[enh] sort isp by name in /isp/

Laurent Peuch il y a 10 ans
Parent
commit
e4b47c2927
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      ffdnispdb/views.py

+ 1 - 1
ffdnispdb/views.py

@@ -32,7 +32,7 @@ def home():
 
 @ispdb.route('/isp/')
 def project_list():
-    return render_template('project_list.html', projects=ISP.query.filter_by(is_disabled=False))
+    return render_template('project_list.html', projects=ISP.query.filter_by(is_disabled=False).order_by(ISP.name.asc()))
 
 
 @ispdb.app_errorhandler(404)