title: How to sort by timestamps in pandas?
body: <p>So, I have timestamps that look like the following:</p>
  
  <pre><code>20140804:10:00:13.281486
  
  20140804:10:00:13.400113
  
  20140804:10:00:13.555512
  
  20140804:10:00:13.435677
  </code></pre>
  
  <p>I have them in a DataFrame and I am trying to sort them in an ascending order. I have tried the following. But, it doesn't seem to work</p>
  
  <pre><code>df['yyyymmdd'] = pd.to_numeric(df['yyyymmdd'], errors='coerce')
  
  df['hh'] = pd.to_numeric(df['hh'], errors='coerce')
  
  df['mm'] = pd.to_numeric(df['mm'], errors='coerce')
  
  df['ss'] = pd.to_numeric(df['ss'], errors='coerce')
  
  df=df.sort(['yyyymmdd', 'hh','mm','ss'], ascending=[True, True,True,True])
  </code></pre>
  
  <p>Any help is appreciated. </p>