[PATCH] D47186: [LNT] Sort machines in Compare to by names.

Martin Liška via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 25 01:00:47 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL333260: Sort machines in Compare to by names. (authored by marxin, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D47186?vs=148558&id=148562#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D47186

Files:
  lnt/trunk/lnt/server/ui/views.py


Index: lnt/trunk/lnt/server/ui/views.py
===================================================================
--- lnt/trunk/lnt/server/ui/views.py
+++ lnt/trunk/lnt/server/ui/views.py
@@ -324,7 +324,7 @@
                                          run.end_time.isoformat()))
         return flask.jsonify(**json_obj)
 
-    machines = session.query(ts.Machine).all()
+    machines = session.query(ts.Machine).order_by(ts.Machine.name).all()
     relatives = [m for m in machines if m.name == machine.name]
     return render_template("v4_machine.html",
                            testsuite_name=g.testsuite_name,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47186.148562.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180525/593c9f70/attachment.bin>


More information about the llvm-commits mailing list