Sort array keys by date
<p>How can I sort this array by the date using the keys</p>

<pre><code>Array
(
    [Jun '12] =&gt; 2037
    [May '12] =&gt; 4615
    [Apr '12] =&gt; 4175
    [Mar '12] =&gt; 4548
    [Feb '12] =&gt; 2758
    [Jan '12] =&gt; 3077
    [Jul '12] =&gt; 0
)
</code></pre>

<p>I tried uksort with this callback function with no such luck.</p>

<pre><code>function datediff($a, $b) {
     strtotime($a);
    $a = date('U',strtotime($a));
    $b = date('U',strtotime($b));

    if ($a == $b) $r = 0;
    else $r = ($a &gt; $b) ? 1: -1;

    return $r;
}
</code></pre>

<p>Any help is appreciated.
Thanks!</p>
