sort_index function sort_index<Type>(x:Type[_]) -> Integer[_] Sort a vector. x: Vector. Returns: A vector giving the indices of elements in x in ascending order.