> cvSeqSort does not seem to sort correctly when the number of items to
> sort is greater than or equal to 8.
> Here's my test code:
> int comp( const void* a, const void* b, void* userdata )
> int* pa = (int*) a;
> int* pb = (int*) b;
> return *pa > *pb;
Your comparsion callback is wrong: You are supposed to return
a negative integer if a < b,
a positive integer if a > b and
zero if a == b.
From the documentation:
/* a < b ? -1 : a > b ? 1 : 0 */