Possible Duplicate:
Stabilizing the standard library qsort?
Is it possible to make qsort stable for ints just by modifying my comp op? That's my code. I'm using this on really small arrays of around 5-7 of size.
static int compare( const void *a, const void *b )
{
const int A(*(const int*)(a));
const int B(*(const int*)(b));
return B - A;
}