[enh] sort isp by name in /isp/
authorLaurent Peuch <cortex@worlddomination.be>
Fri, 13 Jun 2014 02:11:15 +0000 (04:11 +0200)
committerLaurent Peuch <cortex@worlddomination.be>
Fri, 13 Jun 2014 02:11:15 +0000 (04:11 +0200)
ffdnispdb/views.py

index 66fa974..6d7cbdd 100644 (file)
@@ -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)