3c460f56a582ae4fe383b219f7d0715c7f0092f3 kent Sun Jan 9 10:55:01 2011 -0800 Fixing subtrack sorting problem in composite tracks in track hub. diff --git src/hg/inc/trackDb.h src/hg/inc/trackDb.h index c9054d7..0ccba10 100644 --- src/hg/inc/trackDb.h +++ src/hg/inc/trackDb.h @@ -450,30 +450,34 @@ * superTrack on * and the children of superTracks have the tag: * superTrack parentName * In the subTrack system the parents have the tag: * compositeTrack on * and the children have the tag: * subTrack parentName * In this routine the subtracks are removed from the list, and stuffed into * the subtracks lists of their parents. The highest level parents stay on * the list. There can be multiple levels of inheritance. * For the supertracks the _parents_ are removed from the list. The only * reference to them in the returned forest is that they are in the parent * field of their children. The parents of supertracks have no subtracks * after this call currently. */ +void trackDbPrioritizeContainerItems(struct trackDb *tdbList); +/* Set priorities in containers if they have no priorities already set + priorities are based upon 'sortOrder' setting or else shortLabel */ + void trackDbAddTableField(struct trackDb *tdbList); /* Add table field by looking it up in settings. */ struct slRef *trackDbListGetRefsToDescendants(struct trackDb *tdbForest); /* Return reference list to everything in forest. Do slFreeList when done. */ struct slRef *trackDbListGetRefsToDescendantLeaves(struct trackDb *tdbForest); /* Return reference list all leaves in forest. Do slFreeList when done. */ int trackDbRefCmp(const void *va, const void *vb); /* Do trackDbCmp on list of references as opposed to actual trackDbs. */ int trackDbCountDescendants(struct trackDb *tdb); /* Count the number of tracks in subtracks list and their subtracks too . */