title: Get Highest Version Number in a Folder
body: <p>How do I get the highest number file inside a folder <code>N.2.4.0.12</code>? The file names are</p>
  
  <pre><code>N.2.1.0,
  N.2.1.1,
  N.2.1.2, 
  N.2.4.0.8, 
  N.2.4.0.9, 
  N.2.4.0.10, 
  N.2.4.0.11, 
  N.2.4.0.12, 
  files.txt
  </code></pre>
  
  <p>I tried so many ways but it is still showing <code>N.2.4.0.09</code> instead of <code>N.2.4.0.12</code></p>
  
  <pre><code>var FileInOrdered = allFiles.OrderBy(f =&gt; f.Name).Last();
  </code></pre>