title: Sorted vector of indices from a vector
body: <p>My question is more understable with an example. </p>
  
  <p>Given an arbitrary vector, i.e. <code>[6 2 5]</code>, I want to get another vector whose elements are the sorted indices of the input vector: in this case, <code>[3 1 2]</code>.</p>
  
  <p>Is there any MATLAB function capable of returning this?</p>
  
  <p>Thanks!</p>