48d92ef665025410a2ee23fac5c6d468fe7cb128
markd
  Wed Jan 26 10:52:34 2011 -0800
modified refSeqGet to return results in predictiable order to minimize test failures when database changes
diff --git src/hg/inc/genePred.h src/hg/inc/genePred.h
index 8a23262..176b4f3 100644
--- src/hg/inc/genePred.h
+++ src/hg/inc/genePred.h
@@ -150,30 +150,33 @@
 /* Load all genePreds with from tab-separated file, possibly with optional
  * fields. Dispose of this with genePredFreeList(). */
 
 char *genePredCdsStatStr(enum cdsStatus stat);
 /* get string value of a cdsStatus */
 
 void genePredAddGenbankCds(struct psl *psl, struct genbankCds* cds, 
 	struct genePred *gene);
 /* Convert cdsStart/End from mrna to genomic coordinates. 
  * Note that the genePred blocks need not be filled in before
  * this call. */
 
 int genePredCmp(const void *va, const void *vb);
 /* Compare to sort based on chromosome, txStart. */
 
+int genePredNameCmp(const void *va, const void *vb);
+/* Compare to sort based on name, then chromosome, txStart. */
+
 struct genePred *genePredFromGroupedGff(struct gffFile *gff, struct gffGroup *group, 
                                         char *name, char *exonSelectWord, unsigned optFields,
                                         unsigned options);
 /* Convert gff->groupList to genePred list.   Only put lines where feature type  matches
  * exonSelectWord into the gene.  (If exonSelectWord is NULL, all go in)
  * If optFields contains the bit set of optional fields to add to the genePred.
  * If genePredCdsStatFld is set, then the CDS status information is
  * set based on the presences of start_codon, stop_codon, and CDS features.
  * If genePredExonFramesFld is set, then frame is set as specified in the GTF.
  * Options are from genePredFromGxfOpts.  If genePredGxfImpliedStopAfterCds
  * is specified, it is treated as if a stop_codon annotation was found,
  * if there isn't one.  If genePredGxfGeneNameAsName2 is specified, use
  * gene_name for the name2 field otherwise gene_id.
  */