Airbus Americas Customer Services processes numeric identifiers such as aircraft part references and maintenance event codes. Given an array of integers, return a new array containing the same values in nondecreasing order.
Implement the sorting algorithm yourself. Do not call Python's built-in sort() or sorted() functions. After implementing the function, explain why you selected the algorithm and state its time and space complexity.
nums, a list of integers. The list may be empty and may contain duplicate or negative values.nums in nondecreasing order.def sort_numbers(nums):