The Duke Energy Outage Map may need outage-related priority values displayed in ascending order. Given an array of integers, return a new array containing the same values in nondecreasing order.
Implement the sorting algorithm yourself without calling Python's built-in sort() or sorted() functions. The input array may contain duplicate, negative, and zero values. The original input must not be modified.
nums, a list of integers.nums, sorted in nondecreasing order.def sort_integers(nums):def sort_integers(nums):