Implement lib C qsort() as main sorting function. Change the compare
functions accordingly.