title: How can I "zip sort" parallel numpy arrays?
body: <p>If I have two parallel lists and want to sort them by the order of the elements in the first, it's very easy:</p>
  
  <pre><code>&gt;&gt;&gt; a = [2, 3, 1]
  &gt;&gt;&gt; b = [4, 6, 7]
  &gt;&gt;&gt; a, b = zip(*sorted(zip(a,b)))
  &gt;&gt;&gt; print a
  (1, 2, 3)
  &gt;&gt;&gt; print b
  (7, 4, 6)
  </code></pre>
  
  <p>How can I do the same using numpy arrays without unpacking them into conventional Python lists?</p>