I am using the below code to access the files in a certain path:
Dim dirInfo As New DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory & "/images/JobImages/" & projectname & "/" & ImageFolder & "/")
Dim allFiles As IO.FileInfo() = dirInfo.GetFiles("lightbox*.png")
This is bringing back the following files in the following order: - Lightbox 4 - Lightbox3 - Lightbox2 - Lightbox1
My question is, is there a way to sort it so it returns the other way round? So as: -Lightbox1 - Lightbox2 - Lightbox3 - Lightbox4