title: Sorting values in an array: 'reverse' is an invalid keyword argument for this function
body: <p>I try to sort values in an array in descending order. If I try it in ascending order it works, but when i do it descending I get an error.</p>
  
  <pre><code>e = np.array([[5.,3.,8.],[6.,7.,1.],[4.,8.,2.]])
  e.sort()
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>e = array([[3.,5.,8.],[1.,6.,7.],[2.,4.,8.]])
  </code></pre>
  
  <p>now in reverse order:</p>
  
  <pre><code>  e.sort(reverse=True)
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>TypeError: 'reverse' is an invalid keyword argument for this function
  </code></pre>
  
  <p>I also tried <code>e.sort(key=itemgetter(1))</code> after <code>from operator import itemgetter</code> but the same error appears ('reverse' is replaced by 'key').</p>
  
  <p>Why is this the case? Why does it not work? Why this error (this is the way to use key or reverse right)?</p>