Force a reasonable sort order for sample sheet
authorDiane Trout <diane@ghic.org>
Thu, 23 Feb 2017 01:03:12 +0000 (17:03 -0800)
committerDiane Trout <diane@ghic.org>
Thu, 23 Feb 2017 01:03:12 +0000 (17:03 -0800)
since we made the opposite order the default for lanes_for

experiments/experiments.py

index 29b0cc1a9751a6fd50a0f3c75a62730af284db78..0e201b6084e1f4ba72807f91e83227851cc73f0c 100644 (file)
@@ -27,7 +27,7 @@ def flowcell_information(flowcell_id):
         return None
 
     lane_set = {}
-    for lane in fc.lane_set.all():
+    for lane in fc.lane_set.order_by('lane_number', 'library__id'):
         lane_item = {
             'cluster_estimate': lane.cluster_estimate,
             'comment': lane.comment,