Possible Duplicates:
Sort on a string that may contain a number
How would I sort a list of files by name to match how Windows Explorer displays them?
Greetings everyone!!!
I am facing a problem when getting files with the method Directory.GetFiles. I have files in the following sequence in my directory.
Slide1.png, Slide2.png,Slide3.png,Slide4.png and so on.
When i get the files it returns in the format Slide1.png, Slide10.png, Slide11.png,Slide12.png, Slide2.png,Slide21.png and so on...
It is sorting with the file name and combining the same values. i am trying Array.sort() but its not sorting as i want. i want the following sequence.
Slide1.png, Slide2.png,Slide3.png,Slide4.png and so on.
I am using VB.NET Framework version 4.0.
Thank you