>>927

orig = [10, 1, 3, 0]
sorted = orig.sort

sorted.each{|e|
p orig.index(e)
}

じゃだめなの?

origIndx = {}

orig.each_with_index{|e, i|
origIndx[e] = i
}

sorted.each{|e|
p origIndx[e]
}

とか