Revert "fix: qsort_r"

This reverts commit 50a6c59553a4e9ed5c3b72c3937a614ffbeac4f5.