2b7a4a2a57b95e2867dfb651cc9a35c2fa06a503
kent
  Mon Dec 6 09:18:42 2021 -0800
Employing slPairCmpWordsWithEmbeddedNumbers sorting in the faceted table display.

diff --git src/hg/lib/facetField.c src/hg/lib/facetField.c
index f9924dc..a2b3553 100644
--- src/hg/lib/facetField.c
+++ src/hg/lib/facetField.c
@@ -22,31 +22,31 @@
 }
 
 static int facetValCmpUseCountDesc(const void *va, const void *vb)
 /* Compare two facetVal so as to sort them based on useCount with most used first */
 {
 struct facetVal *a = *((struct facetVal **)va);
 struct facetVal *b = *((struct facetVal **)vb);
 return b->useCount - a->useCount;
 }
 
 int facetValCmp(const void *va, const void *vb)
 /* Compare two facetVal alphabetically by val */
 {
 struct facetVal *a = *((struct facetVal **)va);
 struct facetVal *b = *((struct facetVal **)vb);
-return strcasecmp(a->val, b->val);
+return cmpWordsWithEmbeddedNumbers(a->val, b->val);
 }
 
 struct facetVal *facetsClone(struct facetVal *origList)
 /* Copy the facet vals list */
 {
 
 struct facetVal *newList = NULL;
 struct facetVal *o;  // original element
 for (o = origList; o != NULL; o = o->next)
     {
 
     struct facetVal *n;   // new element
     AllocVar(n);
     n->val = o->val;
     n->useCount = o->useCount;