Create a function that takes an array of numbers and returns a new array, sorted in ascending order (smallest to biggest).
null, an empty array, or undefined; return an empty array.sortNumsAscending([1, 2, 10, 50, 5]) ➞ [1, 2, 5, 10, 50]
sortNumsAscending([80, 29, 4, -95, -24, 85]) ➞ [-95, -24, 4, 29, 80, 85]
sortNumsAscending(null) ➞ []
sortNumsAscending([]) ➞ []
Test input can be positive or negative.