[LNT] r305740 - Also sort by order in Graph API before sending
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 19 13:17:35 PDT 2017
Author: cmatthews
Date: Mon Jun 19 15:17:35 2017
New Revision: 305740
URL: http://llvm.org/viewvc/llvm-project?rev=305740&view=rev
Log:
Also sort by order in Graph API before sending
Modified:
lnt/trunk/lnt/server/ui/api.py
Modified: lnt/trunk/lnt/server/ui/api.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/api.py?rev=305740&r1=305739&r2=305740&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/api.py (original)
+++ lnt/trunk/lnt/server/ui/api.py Mon Jun 19 15:17:35 2017
@@ -218,7 +218,7 @@ class Graph(Resource):
samples = [[convert_revision(rev), val, {'label': rev, 'date': str(time), 'runID': str(rid)}] for val, rev, time, rid in
q.all()[::-1]]
-
+ samples.sort(key=lambda x: x[0])
return samples
More information about the llvm-commits
mailing list