Answer:
You can sort an array with any method you want, but there is a built-in qsort function, declared in stdlib.h (see the attached link).
bubble sort, quick sort, insertion sort, merge sort, radix sort and lot more..
merge sort is the most efficient one..