Implement a sorting algorithm.
Asked in the Technical interview stage. Implement sort_numbers(nums) using a comparison-based algorithm without calling the built-in sorting functions.
nums is a list of integers. Return a new list containing the same values in nondecreasing order. Do not modify the input list.
def sort_numbers(nums):