I have a folder containing asc files named as bio1_t2.asc
, bio1_t3.asc
up to bio1_t539.asc
. I'm using a package that loads these files from the folder for some calculation. The function inside the package loads files directly from the folder.
My problem is that the package loads files in alphabetical order like bio1_t10.asc bio1_t101.asc...bio1_t2.asc
. But i want it to load in numeric order like bio1_t2, bio1_t3,...bio1_t539
for a true calculation.
Is there a way to load the files in numeric order from the folder? Or how can i rename the files so that they are loaded in numerical order?