title: Order (and enumerate) directory listing by file creation date?
body: <p>So I have this routine:</p>
  
  <pre><code>public static IEnumerable&lt;string&gt; GetFiles( string path, string[] searchPatterns, SearchOption searchOption = SearchOption.TopDirectoryOnly) {
      return searchPatterns.AsParallel()
                           .SelectMany(searchPattern =&gt; 
                               Directory.EnumerateFiles(path, searchPattern, searchOption))
                           .OrderBy&lt;string, string&gt;( (f) =&gt; f)
                           .Distinct&lt;string&gt;();
  }
  </code></pre>
  
  <p>and its working but ordering the files by its name and I need to order the files returned by its creation date. How can I sort by that if the item is an string like in the routine. I want to use Enumerate cause files are expected to be more than 1k.</p>
  
  <p>Thanks.</p>