src/hg/lib/hdb.c 1.422

1.422 2010/03/19 17:53:10 braney
fixing my earlier fix. The "right" solution is to make sure that we keep the list in the right order when we return the list.
Index: src/hg/lib/hdb.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hdb.c,v
retrieving revision 1.421
retrieving revision 1.422
diff -b -B -U 4 -r1.421 -r1.422
--- src/hg/lib/hdb.c	18 Mar 2010 23:55:31 -0000	1.421
+++ src/hg/lib/hdb.c	19 Mar 2010 17:53:10 -0000	1.422
@@ -3331,8 +3331,10 @@
             trackDbFree(&oneRow);
 	    }
         }
     }
+
+slReverse(tdbList);
 hFreeConn(&conn);
 return exists;
 }
 
@@ -3476,13 +3478,9 @@
         {
         addTrackIfDataAccessible(db, tdb, chrom, privateHost, &newList);
 	}
     }
-/* remove slReverse to fix problem with menus in hgTables 
- * being in the opposite order.  Used to be that pruneEmpties
- * ended up flipping the list
- */
-// slReverse(&newList);
+slReverse(&newList);
 return newList;
 }
 
 static struct trackDb *rFindTrack(int level, struct trackDb *tdbList, char *track)