How to sort date array in php?
<p>I am new to php, I have php date array </p>

<pre><code>[0] =&gt; 11-01-2012
[1] =&gt; 01-01-2014
[2] =&gt; 01-01-2015
[3] =&gt; 09-02-2013
[4] =&gt; 01-01-2013
</code></pre>

<p>I want to sort it like :</p>

<pre><code>[0] =&gt; 11-01-2012
[1] =&gt; 01-01-2013
[2] =&gt; 09-02-2013
[3] =&gt; 01-01-2014
[4] =&gt; 01-01-2015
</code></pre>

<p>I use <code>asort</code> but not working.</p>