sorting scandir by date Descending order
<p>i am using this code for listing a directory</p>

<pre><code>foreach(scandir('back/1') as $folder){
    if (in_array($folder, array('.', '..'))) continue;
    echo basename($folder); // get folder's name
}
</code></pre>

<p>but i want to sort the directories input by modifecation time.</p>

<p>how to do it.</p>

<p>Regards</p>
