PHP read directory sorting?
<p>I have:</p>

<pre><code>$directory='testdirectory/';
$handler = opendir($directory);
while ($file = readdir($handler)) {
...
}
</code></pre>

<p>What is the output of opendir/readdir like this sorted by?  Is it date, alphabetical or something else because I cannot tell from the output.</p>
