642a3085cf1b7a959ab994ac575a55adb7e3a445
tdreszer
  Tue Oct 5 16:01:40 2010 -0700
Needed to sort slPair
diff --git src/lib/common.c src/lib/common.c
index ae3d4d9..26336ef 100644
--- src/lib/common.c
+++ src/lib/common.c
@@ -979,6 +979,29 @@
 }
 
 
+int slPairCmpCase(const void *va, const void *vb)
+/* Compare two slPairs, ignore case. */
+{
+const struct slPair *a = *((struct slPair **)va);
+const struct slPair *b = *((struct slPair **)vb);
+return strcasecmp(a->name, b->name);
+}
+
+void slPairSortCase(struct slPair **pList)
+/* Sort slPair list, ignore case. */
+{
+slSort(pList, slPairCmpCase);
+}
+
+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);
+}
+
+
 void gentleFree(void *pt)
 {
 if (pt != NULL) freeMem((char*)pt);