title: Reverse sort a column-based numpy array
body: <p>I want to sort (descending) a numpy array where the array is reshaped to one column structure. However, the following code seems not be working.</p>
  <pre><code>a = array([5,1,2,4,9,2]).reshape(-1, 1)
  a_sorted = np.sort(a)[::-1]
  print(&quot;a=&quot;,a)
  print(&quot;a_sorted=&quot;,a_sorted)
  </code></pre>
  <p>Output is</p>
  <pre><code>a= [[5]
   [1]
   [2]
   [4]
   [9]
   [2]]
  a_sorted= [[2]
   [9]
   [4]
   [2]
   [1]
   [5]]
  </code></pre>
  <p>That is due to the <code>reshape</code> function. If I remove that, the sort works fine. How can I fix that?</p>