title: Sort array with timestamps?
body: <p>I have an array of timestamps that look like this:</p>
  
  <pre><code>2012-11-19 19:45
  </code></pre>
  
  <p>I need to sort them by date. I could do a bubble sort or something if i could get the unix timestamp of a date, but i don't know what function gives me that. I looked at strtotime but it won't let me pass a date format. I'm also not sure a bubble sort is the best way to go.</p>
  
  <p>Any suggestions?</p>
  
  <p>Array example:</p>
  
  <p>Also, sorry, i should have mentioned it was in 'show_date'.</p>
  
  <pre><code>Array
  (
      [15] =&gt; Array
          (
              [show_date] =&gt; 2012-11-19 10:40
          )
  
      [16] =&gt; Array
          (
              [show_date] =&gt; 2012-11-20 10:40
          )
  
      [17] =&gt; Array
          (
              [show_date] =&gt; 2012-11-21 10:40
          )
  
      [18] =&gt; Array
          (
              [show_date] =&gt; 2012-11-22 10:40
          )
  
  )
  </code></pre>