// You will have to implement a compareFunction. Example shown below.
qsort(A,sz,sizeof(int),compareFunction);// Example of compare function
intcompareFunction(constvoid*a,constvoid*b){intvalue1=*((int*)a);intvalue2=*((int*)b);if(value1<value2){// Return -1 if you want ascending. 1 if you want descending.
return-1;}elseif(value1>value2){// Return 1 if you want ascending. -1 if you want descending.
return1;}return0;}