Fix ordering on runners page
authorTom Powell <tom@powell.io>
Tue, 28 May 2019 05:06:12 +0000 (22:06 -0700)
committerTom Powell <tom@powell.io>
Tue, 28 May 2019 05:06:12 +0000 (22:06 -0700)
ui/app.py

index ba5ef199d7c9a6e4202575b2219fc963afc360d4..7ef58894570b04e1743169a13e163be14e029541 100644 (file)
--- a/ui/app.py
+++ b/ui/app.py
@@ -151,7 +151,7 @@ def web_runners():
         models.Runner.runner_sponsor,
         models.Runner.runner_sponsor_url,
         subquery.c.build_date
-    ).group_by(models.Runner.runner_id).all()
+    ).group_by(models.Runner.runner_id).order_by(subquery.c.build_date.desc(), models.Runner.runner_name).all()
     return render_template('runners.html', runners=runners)
 
 @app.route('/api/v1/builds')