Am trying to find the latest sub-directory from a parent director.
public static DirectoryInfo GetLatestSubDirectory(string parentDirPath)
As of now the implementation is uses the bubble sort algorithm to find the latest by comparing the creation time.
if (subDirInfo.CreationTimeUtc > latestSubDirInfo.CreationTimeUtc)
Am wondering if there's a more efficient way to do this? LINQ??