title: Fastest way to sort each row in a pandas dataframe
body: <p>I need to find the quickest way to sort each row in a dataframe with millions of rows and around a hundred columns.</p>
  
  <p>So something like this:</p>
  
  <pre><code>A   B   C   D
  3   4   8   1
  9   2   7   2
  </code></pre>
  
  <p>Needs to become:</p>
  
  <pre><code>A   B   C   D
  8   4   3   1
  9   7   2   2
  </code></pre>
  
  <p>Right now I'm applying sort to each row and building up a new dataframe row by row. I'm also doing a couple of extra, less important things to each row (hence why I'm using pandas and not numpy). Could it be quicker to instead create a list of lists and then build the new dataframe at once? Or do I need to go cython?</p>