powered by
sort_index(vec, order = 0)
temp <- rnorm(10) temp2 <- sort_index(temp)
Run the code above in your browser using DataLab