Write a function in Python to sort an array of integers.
Implement sort_array(nums) so it returns a new array containing the same integers in ascending order. The input may be empty, and the original array should not be modified.
Input: A list of integers nums.
Output: A new list containing the integers in nondecreasing order.
def sort_array(nums):