order runners by (sponsor_name, name)
authorTom Powell <tom@powell.io>
Thu, 1 Nov 2018 07:10:30 +0000 (00:10 -0700)
committerTom Powell <tom@powell.io>
Thu, 1 Nov 2018 07:10:30 +0000 (00:10 -0700)
ui/app.py

index ed67d7ca20779f6b9a6bc59cf5430e06e7b04bff..60084fd16c02d5566e5140471ae84d01a5d940ef 100644 (file)
--- a/ui/app.py
+++ b/ui/app.py
@@ -66,7 +66,7 @@ def runner(runner):
 
 @app.route("/runners/")
 def runners():
-    runners = models.Runner.query.order_by(models.Runner.runner_sponsor).all()
+    runners = models.Runner.query.order_by(models.Runner.runner_sponsor, models.Runner.runner_name).all()
     return render_template('runners.html', runners=runners)
 
 @app.route("/webhook", methods=('POST',))