title: Sort in descending order in PySpark
body: <p>I'm using PySpark (Python 2.7.9/Spark 1.3.1) and have a dataframe GroupObject which I need to filter &amp; sort in the descending order. Trying to achieve it via this piece of code.</p>
  <pre><code>group_by_dataframe.count().filter(&quot;`count` &gt;= 10&quot;).sort('count', ascending=False)
  </code></pre>
  <p>But it throws the following error.</p>
  <pre><code>sort() got an unexpected keyword argument 'ascending'
  </code></pre>