I’m not sure at this moment, if you are trolling or why the ascending ordering of these numbers is not clear enough.
Let’s take the example you are mentioning:
x = [ 0.0785, 1.5267, -0.8521, 0.4065] 

The output (as given by @Prashant_Kalikotay) is
[2,0,3,1]

which gives the ordering:
[x[2], x[0], x[3], x[1]] = [-0.8521, 0.0785, 0.4065, 1.5267]

since
-0.8521 < 0.0785 < 0.4065 < 1.5267

Which part is confusing you?