powered by
orderByString(x, y)
## Not run: # a <- c("c", "a", "b") # b <- c("b", "c", "a") # index <- orderByString(a, b) # to order b like a needs what indexes? # index # b[index] # ## End(Not run)
Run the code above in your browser using DataLab