in a folder, I have these files. the order on windows explorer is:
- input (1).jpg
- input (2).jpg
- input (101).jpg
This is the way I got the files from the folder:
var files = Directory.GetFiles(inputImage, "*.*", SearchOption.TopDirectoryOnly);
But the order will be:
- input (1).jpg
- input (101).jpg
- input (2).jpg
Even I tried: Array.Sort(files);
But the order is the same, How can I load the files with this order:
- input (1).jpg
- input (2).jpg
- input (101).jpg