title: Sorting a dataframe by a column
body: <p>Hi I need to sort a data frame. My data frame looks like below.</p>
  
  <pre><code>A   B
  2   5
  3   9
  2   7
  </code></pre>
  
  <p>I want to sort this by column A.</p>
  
  <pre><code>A   B
  2   5
  2   7
  3   9
  </code></pre>
  
  <p>when having duplicates in the column A,</p>
  
  <pre><code>sorted_data=data.sort_values(by=['A'], inplace=True)
  </code></pre>
  
  <p>doesn't workout. Any suggestion how I can fix this</p>