I have got a complete working solution for sorting files in a directory but my problem still seems to be unsolved.
The files I have in a directory are as follows:
1.jpg
2.jpg
3.jpg
10.jpg
11.jpg
20.jpg
In folder view of Windows XP, I can clearly see the sorted files, but when I get the files in VB.NET programmatically, it is sorted as follows:
1.jpg
10.jpg
11.jpg
2.jpg
20.jpg
3.jpg
Note: All 1's are sorted together, then 2's and the pattern is followed.
Well, I need a solution which can sort in a correct manner, like I listed in the 1st list.
Any help would be appreciated.
Thanks in advance.
hashaam83
The files I have in a directory are as follows:
1.jpg
2.jpg
3.jpg
10.jpg
11.jpg
20.jpg
In folder view of Windows XP, I can clearly see the sorted files, but when I get the files in VB.NET programmatically, it is sorted as follows:
1.jpg
10.jpg
11.jpg
2.jpg
20.jpg
3.jpg
Note: All 1's are sorted together, then 2's and the pattern is followed.
Well, I need a solution which can sort in a correct manner, like I listed in the 1st list.
Any help would be appreciated.
Thanks in advance.
hashaam83