is there a way (like php's natsort) to sort a list composed of filenames which only differ in one number and are returned unsorted by glob, e.g.:
test1.dat
test7.dat
.
.
test10.dat
test3.dat
When I do a naive sort the result is
test1.dat
test10.dat
test2.dat
.
.
.
because 1 occurs before 2 :) I could construct something with for loops and a range (or a generator with range) but this feels somewhat unpythonic...