I'd like to generate an array which contains the positions of the highest integers/floating point numbers to the lowest in another array. For example:
integers = [1,6,8,5]
I want the newly generated array to be:
newArray = [2,1,3,0]
or
floatingPoints = [1.6,0.5,1.1]
would become
newArray = [0,2,1]