 class="op">)</span></span></span>
<span class="r-in"><span><span class="va">p</span> <span class="op">&lt;-</span> <span class="fu">match_order</span><span class="op">(</span><span class="va">ids1</span>, <span class="va">ids2</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="va">ids1</span><span class="op">[</span><span class="va">p</span><span class="op">]</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span>  [1]  3  6  4  8  5  7  1  9 10  2</span