title: C# - list sorting - x and y
body: <p>I have this code and I understand that it's sorting the list <code>lstDMV</code>. But please help me break it down.</p>
  
  <pre><code>lstDMV.Sort((x, y) =&gt; DateTime.Compare(x.NotifDate, y.NotifDate));
  </code></pre>
  
  <p>What does <code>=&gt;</code> mean? And how does it work based on the integer returned from the compare function?</p>
  
  <p>How can I sort my <code>lstDMV</code> if I'm sorting integers instead of dates?</p>