I hope the title is not too misleading. I have two arrays, for example:
[9, 2, 5, 6, 3]
[1.0, 7.0, 4.0, 9.0, 8.0]
First of all I want to sort the first array ascending. Then I would like to apply the position changes to the second array, no matter if the sorting of the second array is correct.
So applied to the given example the result would be:
[2, 3, 5, 6, 9]
[7.0, 8.0, 4.0, 9.0, 1.0]
Alternatively it could also be a List instead of an array. Can someone help?