I am stuck on this sorting problem.
Private Sub ...
Dim oDirInfo As DirectoryInfo
Dim aoFSInfo() As FileSystemInfo
Dim asFiles() As String
FQPN is a fully qualified path name ending in "\*.*".
oDirInfo = New DirectoryInfo(FQPN)
Now into asFiles I want the files' names, sorted by the files' timestamps in ascending order. I presume, that oDirInfo.CreationTime
plays a role here, but can not figure out how to use OrderBy
properly.
aoFSInfo = oDirInfo.GetFileSystemInfos() '?
asFiles = aoFSInfo.OrderBy(...)
End Sub