title: Pyspark dataframe OrderBy list of columns
body: <p>I am trying to use OrderBy function in pyspark dataframe before I write into csv but I am not sure to use OrderBy functions if I have a list of columns.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>Cols = ['col1','col2','col3']
  df = df.OrderBy(cols,ascending=False)
  </code></pre>