note
leocharre
I'm just curious here..
Why do you think
<pre>File 1
File 10
File 100
File 2
File 20
File 21</pre>
Is out of order? Or strange at all?
<p>It's obviously sorted alphanum.
<br>You expected to sort by comparison, by.. is two greater than, 100. It's not greater ammount, but 100 does come before 2 alphanumerically. Just wanted to point that out- because this is a bug in the coder, not the code.
<p>If you want to be able to sort files like these as you expect, one thing to do is name them appropriately...
<pre>
# rename ' ' ' 00' File\ ?; rename ' ' ' 0' File\ ??
# ls -1 File\ *
File 001
File 002
File 010
File 020
File 021
File 100
</pre>
741195
741195