title: lambda string order by dates with number
body: <p>How to sort this?</p>
  
  <p>I have List of string with values like this</p>
  
  <pre><code>11-03-2013
  11-03-2013 -Count=2
  11-03-2013 -count=1
  
  11-04-2013 -Count=1
  11-04-2013 -Count=2
  11-04-2013
  </code></pre>
  
  <p>Output should be, The one without the count should be on the last and the top most should be 1 followed by 1 and dates should be ordered by ascending.</p>
  
  <pre><code>11-03-2013 -Count=2
  11-03-2013 -count=1
  11-03-2013
  
  11-04-2013 -Count=2
  11-04-2013 -Count=1
  11-04-2013
  </code></pre>
  
  <p>I tried this code but this is sorting this by descending</p>
  
  <pre><code>var  edates= edates.OrderBy(e =&gt; e.Replace("-count=1", string.Empty).Replace("-count=2", string.Empty)).ToList(); 
  </code></pre>
  
  <p>I know that a simple class with properties can do the trick but doing that so would need to change other methods which would require a lot of work.</p>
  
  <p>Regards</p>