that map be of equal or greather length than vec.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">vec</td><td>The vector to be sorted.</td></tr>
    <tr><td class="paramname">map</td><td>Vector of intergers which is permuted in the same way that vec is permuted. If map is a vector of values 1 to N, where N is the length of vec, than, map is the map from vec's original value to vec's final value after the sort.</td></tr>
  </table>
  </dd>
</dl>
<dl class