Emm... realized where my error lies.
Thanks. Initially I tried what you said did not work. But I know why. i was reading each files from directory. Due to logic error, I did not obtain a sorted list. I was able to fix. I thought it was due to the "." in the numbers. Thanks.