��际意义的那些间接排序而言，这一点非常重要：</p>
<pre><code>In [189]: values = np.array([&#39;2:first&#39;, &#39;2:second&#39;, &#39;1:first&#39;, &#39;1:second&#39;,
.....:                    &#39;1:third&#39;])

In [190]: key = np.array([2, 2, 1, 1, 1])

In [191]: indexer = key.argsort(kind=&#39;mergesort&#39;)

In [192]: indexer
Out[192]: array([2, 3, 4, 0, 1])

In [193]: values.take(indexer)
Out[193]: 
array([&#39;1:first&#39;, &#39;1:second&#39;, &#39;1:third&#39;, &#39;2:first&#39