sorting a array of directory values by descending natural order
<p>so what I have is a content directory to be returned in descending natural order, I'm using scandir and natsort but the addition of array_reverse yields no results. I've been researching using a combination of opendir and readdir as well what ever else to effect this outcome. the items to be sorted are numbered imagefiles. they are to be returned 10 9 8 7 and so on, but like from like 1000- 999- 998- 997....till 0</p>

<p>here's the code    </p>

<pre><code>$dir='dead_dir/dead_content/';
$launcher= scandir($dir);
natsort($launcher);
array_reverse($launcher,false);
foreach($launcher as $value ){
     if(in_array(pathinfo($value, PATHINFO_EXTENSION),array('png'))){
           echo '&lt;img src="dead_dir/dead_content/'.$value.'" /&gt;'}}
</code></pre>

<p>}</p>

<p>}</p>
