Implement a function to sort an array of integers.
Return a new array containing the values in ascending order. The input array may contain duplicates, negative values, or no elements, and should not be modified.
Use the following signature: def sort_integers(nums):. The function accepts a list of integers and returns a sorted list of integers.
def sort_integers(nums):