Function name: sort_index
Description:

Sort a vector coresponding to another.

Authors: Manos Papadakis