My files are of the format:
ada1
ada2
ada3
....
ada10
ada11
ada12
Unfortunately, when I write out a10,a11 and a12 comes before a2. Could you help me sort it alphabetically as it should be?
#Edit
Now, I have thousands of these files. Basically, xyz1-12, abc1-12 etc.
I use the following to get all files:
GG <- grep("*.txt", list.files(), value = TRUE)
So I can't put 'ada' manually.