fH25, fH25 replace the index order by the sorted array