the sort works for any type of format?

like 1.txt 11.txt

abc1.txt abc11.txt

any format ?

thanks for that code ~