title: Sorting two-dimensional array by date
body: <p>Is there a way I can sort the following array into the correct chronological order ?</p>
  
  <pre><code>[0] =&gt; Array
      (
          [date] =&gt; Sat, 12 Feb 2011 16:55:13 -0500
          [title] =&gt; Product 1
          [link] =&gt; http://blabla/product-1
      )
  
  [1] =&gt; Array
      (
          [date] =&gt; Sat, 25 Sep 2010 17:52:24 -0400
          [title] =&gt; Product 2
          [link] =&gt; http://blabla/product-2
      )
  
  [2] =&gt; Array
      (
          [date] =&gt; Sun, 05 Dec 2010 17:41:32 -0500
          [title] =&gt; Product 3
          [link] =&gt; http://blabla/product-3
      )
  
  [3] =&gt; Array
      (
          [date] =&gt; Sun, 28 Nov 2010 09:14:39 -0500
          [title] =&gt; Product 4
          [link] =&gt; http://blabla/product-4
      )
  
  [4] =&gt; Array
      (
          [date] =&gt; Tue, 07 Dec 2010 18:43:45 -0500
          [title] =&gt; Product 5
          [link] =&gt; http://blabla/product-5
      )
  </code></pre>
  
  <p>The array, from a rss feed, comes to me like this. </p>
  
  <p>I would like to sort the array in chronological order (based on [date] obviously) : <em>Product 1, Product 5, Product 3, Product 4, Product 2</em> </p>
  
  <p>In order to be able to do display the latest products in the real order (not in the strange order they gave me ! - btw, fake products names, the order is really totally <em>random</em>) </p>
  
  <p>Thanks a lot !</p>