Create a function sortArray that sorts a number array in ascending order using sort().

Output: