cd7adb9a43f0ce29a04d85c83456cfc4bf3cb0d7
tdreszer
  Fri Nov 5 14:19:46 2010 -0700
Brian caught me bugging out.  case insensitive sort should really be case insensitive
diff --git src/lib/common.c src/lib/common.c
index 54a1a83..7372713 100644
--- src/lib/common.c
+++ src/lib/common.c
@@ -995,31 +995,31 @@
 
 int slPairCmp(const void *va, const void *vb)
 /* Compare two slPairs. */
 {
 const struct slPair *a = *((struct slPair **)va);
 const struct slPair *b = *((struct slPair **)vb);
 return strcmp(a->name, b->name);
 }
 
 
 int slPairValCmpCase(const void *va, const void *vb)
 /* Case insensitive compare two slPairs on their values (must be string). */
 {
 const struct slPair *a = *((struct slPair **)va);
 const struct slPair *b = *((struct slPair **)vb);
-return strcmp((char *)(a->val), (char *)(b->val));
+return strcasecmp((char *)(a->val), (char *)(b->val));
 }
 
 int slPairValCmp(const void *va, const void *vb)
 /* Compare two slPairs on their values (must be string). */
 {
 const struct slPair *a = *((struct slPair **)va);
 const struct slPair *b = *((struct slPair **)vb);
 return strcmp((char *)(a->val), (char *)(b->val));
 }
 
 void slPairValSortCase(struct slPair **pList)
 /* Sort slPair list on values (must be string), ignore case. */
 {
 slSort(pList, slPairValCmpCase);
 }