So, this is the second version of a solution I deleted, and on none of them I was able to make the array[] from main be updated with the sorted values. Anyone able to see why?