src/hg/instinct/hgHeatmap2/hgHeatmap2.c 1.81
1.81 2009/11/20 23:34:59 sbenz
Changed getDatasets() to return datasets in priority order within a group
Index: src/hg/instinct/hgHeatmap2/hgHeatmap2.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/hgHeatmap2/hgHeatmap2.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -b -B -U 4 -r1.80 -r1.81
--- src/hg/instinct/hgHeatmap2/hgHeatmap2.c 22 Oct 2009 18:42:17 -0000 1.80
+++ src/hg/instinct/hgHeatmap2/hgHeatmap2.c 20 Nov 2009 23:34:59 -0000 1.81
@@ -1586,9 +1586,12 @@
struct json *js = newJson();
for (gr = groups; gr; gr = gr->next)
{
- slSort(&gr->datasets, datasetCmpShortLabel);
+ // this now uses the priority within each group instead of alphabetical by short name
+ // this prevents having to use some weird stuff in order to get the datasets to show up correctly
+ slReverse(&gr->datasets);
+ //slSort(&gr->datasets, datasetCmpShortLabel);
struct json *set, *group = jsonAddContainerList(js, gr->name);
set = group;