&#39;, &#39;Jane&#39;, &#39;Steve&#39;, &#39;Bill&#39;, &#39;Barbara&#39;])

In [185]: last_name = np.array([&#39;Jones&#39;, &#39;Arnold&#39;, &#39;Arnold&#39;, &#39;Jones&#39;, &#39;Walters&#39;])

In [186]: sorter = np.lexsort((first_name, last_name))

In [187]: sorter
Out[187]: array([1, 2, 3, 0, 4])

In [188]: zip(last_name[sorter], first_name[sorter])
Out[188]: &lt;zip at 0x7fa203eda1c8&gt;</code></pre>
<p>刚开始使用lexsort的时候可能会比较容易头晕，这是因为键的应用顺序是�