Given an integer array, sort the array in ascending order.
Input: nums = [6, 8, 4, 2, 7, 3, 1, 5] Output: [1, 2, 3, 4, 5, 6, 7, 8]