"Human varieties" is an illusion of a mad man, available only to hypothetical AI systems, but only with proper contextual knowledge.
To do this, you should use some quick regular expression to extract metadata from file names and use them to organize files:
files<-c("file9.txt","file10.txt"); as.numeric(gsub('^file([0123456789]*)\\.txt$','\\1',files))->fileNum; files[order(fileNum)]
source share