3 ms·Yep, this works just fine: int compare(const void *a, const void *b) { return *(double*)a - *(double*)b; }by cochne 4y agoYep, this works just fine: int compare(const void *a, const void *b) { return *(double*)a - *(double*)b; }