Suppose I have an array: [0,3,4,2,5,1] .
What I want to do is sort the array, for example:
["one", "two", "three", "four", "five", "six"]
So the order corresponds to the first array.
This will be the conclusion:
["one", "four", "five", "three", "six", "two"]
Is there an easy way to do this?
javascript sorting arrays integer order
Sarathi Hansen Oct 28 '10 at 20:35 2010-10-28 20:35
source share