| 2338 | } |
| 2339 | |
| 2340 | int zuiCompareByCardinality(const void *s1, const void *s2) { |
| 2341 | unsigned long first = zuiLength((zsetopsrc*)s1); |
| 2342 | unsigned long second = zuiLength((zsetopsrc*)s2); |
| 2343 | if (first > second) return 1; |
| 2344 | if (first < second) return -1; |
| 2345 | return 0; |
| 2346 | } |
| 2347 | |
| 2348 | static int zuiCompareByRevCardinality(const void *s1, const void *s2) { |
| 2349 | return zuiCompareByCardinality(s1, s2) * -1; |
no test coverage detected