src/hg/lib/hui.c 1.175
1.175 2009/03/16 22:23:11 tdreszer
Presort to set priorites in trackDb now defaults to 10000 and above, allowing new subtracks to appear after subtracks known to cart.
Index: src/hg/lib/hui.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hui.c,v
retrieving revision 1.174
retrieving revision 1.175
diff -b -B -U 4 -r1.174 -r1.175
--- src/hg/lib/hui.c 13 Mar 2009 23:29:09 -0000 1.174
+++ src/hg/lib/hui.c 16 Mar 2009 22:23:11 -0000 1.175
@@ -2115,9 +2115,9 @@
{
if(items != NULL && *items != NULL)
{
slSort(items, sortableTdbItemsCmp);
- int priority=1;
+ int priority=10001; // Setting priorities high allows new subtracks without cart entries to fall after existing subtracks
sortableTdbItem *item;
for (item = *items; item != NULL; item = item->next)
item->tdb->priority = (float)priority++;
}