6f1235bd145665106992ac47b99c383c2983a308
kate
  Wed Sep 26 15:51:42 2018 -0700
Support interchromosomal items in merge mode. refs #21917

diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c
index 69f26ae..e896ea4 100644
--- src/hg/hgTracks/simpleTracks.c
+++ src/hg/hgTracks/simpleTracks.c
@@ -1614,30 +1614,31 @@
 struct track *tg;
 AllocVar(tg);
 return tg;
 }
 
 int simpleFeatureCmp(const void *va, const void *vb)
 /* Compare to sort based on start. */
 {
 const struct simpleFeature *a = *((struct simpleFeature **)va);
 const struct simpleFeature *b = *((struct simpleFeature **)vb);
 return a->start - b->start;
 }
 
 void linkedFeaturesSortAndBound(struct linkedFeatures *lf)
 /* Sort simpleFeatures in the linkedFeature and set start and end based on simpleFetaures */
+// TODO: dedupe the simpleFeatures ?
 {
 struct simpleFeature *sfLast, *sfs = lf->components;
 slSort(&sfs, simpleFeatureCmp);
 lf->components = sfs;
 sfLast = (struct simpleFeature *)slLastEl(sfs);
 lf->start = sfs->start;
 lf->end = sfLast->end;
 }
 
 int linkedFeaturesCmp(const void *va, const void *vb)
 /* Compare to sort based on start. */
 {
 const struct linkedFeatures *a = *((struct linkedFeatures **)va);
 const struct linkedFeatures *b = *((struct linkedFeatures **)vb);
 return a->start - b->start;