Make sure that the lane set is sorted on the flowcell table page
authorDiane Trout <diane@caltech.edu>
Fri, 1 Jul 2011 01:36:57 +0000 (18:36 -0700)
committerDiane Trout <diane@caltech.edu>
Fri, 1 Jul 2011 01:36:57 +0000 (18:36 -0700)
htsworkflow/frontend/experiments/models.py

index 36f6abdb2c9b3d299444941a645080dec182bbe5..d77b3eb78d37b0be44b04d8842ebecdf3eae2f56 100755 (executable)
@@ -66,7 +66,7 @@ class FlowCell(models.Model):
 
   def Lanes(self):
     html = ['<table>']
-    for lane in self.lane_set.all():
+    for lane in self.lane_set.order_by('lane_number'):
         cluster_estimate = lane.cluster_estimate
         if cluster_estimate is not None:
             cluster_estimate = "%s k" % ((int(cluster_estimate)/1000), )