title: How to reshape numpy array with reorder?
body: <p>I have a 1 x 2 x 3 array: </p>
  
  <pre><code>&gt;&gt;&gt; a = np.array([[[1,2,3],[4,5,6]]])
  &gt;&gt;&gt; a
  array([[[1, 2, 3],
          [4, 5, 6]]])
  &gt;&gt;&gt; a.shape
  (1, 2, 3)
  </code></pre>
  
  <p>I want to reshape it to (3,1,2), but so that the elements along original dim 3 are now along dim 1. I want the result to look like this:</p>
  
  <pre><code>&gt;&gt;&gt; new_a
  array([[[1, 4]],
         [[2, 5]],
         [[3, 6]]])
  </code></pre>
  
  <p>and when I just use reshape, I get the the right shape, but the elements are in the same order, not what I want:</p>
  
  <pre><code>&gt;&gt;&gt; a.reshape((3,1,2))
  array([[[1, 2]],
         [[3, 4]],
         [[5, 6]]])
  </code></pre>
  
  <p>How can I achieve this?</p>