Since you have a computer and are on-line, I would suggest that consider using a search engine. I think that it would be faster for you than posting a request for help and waiting for a helpful response.
For your question:
I used google to search for "qsort".
The first hit was
http://www.cplusplus.com/ref/cstdlib/qsort.html
There is an example showing how to make a function to use with qsort() to sort an array of ints.
I don't mind trying to answer specific questions about code that you have written that doesn't compile or doesn't give the results that you expect.
Good Luck!
Dave