Order of files after sorting by names

I transferred a few hundred files with the name 1.xxxx  2.xxxx  3.xxxx …, but after sorting them by names, the order of files became 1.xxxx 10.xxxx 11.xxxx … then 2.xxxx 20.xxxx 21.xxxx.

Is there a way that can sort the file using the normal numerical order like 1 2 3 4 5 6 7 8 9 10 11…?

Thank you!

rename the files to 01.xxx 02.xxx etc and it should fix the issue. If you have more then 10 you may need to name them 001.xxx, 002.xxx etc.