"language-csharp">//The Distinct method requires equality implementation on the class or 
//an IEqualityComparer as parameter
var uniqueNames = customer.Distinct((customerComparer);

//DistinctBy requires a lambda
var uniqueNames = customer.DistinctBy(√ =&gt; √.Name); 
</code></pre>
<h2 id="ordering">Ordering</h2>
<pre><code class="language-csharp">var ascendingOrder = orders.OrderBy(order =&gt; order.Cost);
var descendingOrder = orders.OrderByDescending(order =&gt; order.Cost);

var multipleOdering = o