Cant find order

Hello everybody

Julia has order() which seems to be used for sorting dataframes.

But my search skills have failed me in finding a function that gives me the order of elements in a vector. Like
order([10.2,-3,5])
gives 2,3,1
R has such function which we use a lot. Its easy enough to code up, but surely there is some Julia order() function that does that?

best, Jack

https://docs.julialang.org/en/v1/base/sort/#Base.sortperm

1 Like

jzr, fantastic, I knew it had to be there! thanks a lot.

1 Like