From: Diane Trout Date: Thu, 23 Feb 2017 01:03:12 +0000 (-0800) Subject: Force a reasonable sort order for sample sheet X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=c85e69d9a26b5dc03db58cae0bf3b12c7413026f Force a reasonable sort order for sample sheet since we made the opposite order the default for lanes_for --- diff --git a/experiments/experiments.py b/experiments/experiments.py index 29b0cc1..0e201b6 100644 --- a/experiments/experiments.py +++ b/experiments/experiments.py @@ -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,