If you've got hundreds of filenames, I think you'll find my way runs significantly faster — it only needs to match each filename against the regexp once. Yours will do it dozens of times per filename.
In reply to Re^2: Sorting files by 3 numbers in the name
by tobyink
in thread Sorting files by 3 numbers in the name
by crusty_collins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |