-static int sort_compare (const void *p1, const void *p2)
-{
- int r;
- size_t l;
- char *cp1 = *(char**) p1;
- char *cp2 = *(char**) p2;
-
- if ((r = strcmp (cp1, cp2)))
- return r;
- l = strlen(cp1);
- if ((r = key_compare (cp1+l, cp2+l)))
- return r;
- return cp1[l+sizeof(struct it_key)] -
- cp2[l+sizeof(struct it_key)];
-}
-