Write a program that sorts an array of 32-bit floating-point numbers in ascending order. You are free to choose any sorting algorithm.
solve function signature must remain unchangeddata arrayInput: data = [5.0, 2.0, 8.0, 1.0, 9.0, 4.0], N = 6 Output: data = [1.0, 2.0, 4.0, 5.0, 8.0, 9.0]
N ≤ 1,000,000N = 1,000,000