Php filename sorting
<p>I can get a sorted filename list with the following code:</p>

<pre><code>$log_files = scandir(LLP_LOG_DIR);
$sorted = sort($log_files);
</code></pre>

<p>the filename format is X.log, where X is a progressive numeric value.</p>

<p>How can I solve the problem of getting</p>

<pre><code>0.log
1.log
10.log
11.log
2.log
3.log
</code></pre>

<p>where the wanted result is</p>

<pre><code>0.log
1.log
2.log
3.log
[..]
9.log
10.log
11.log
[..]
</code></pre>

<p>I can strip the ".log" string, sort them etc, but what is the most efficient way?</p>
