visual studio sort order : <p>I have a C# app in Visual studio coded. One of the parts of this app is to sort coupons. Right now, coupons are sorted in descending order by end date. There is an option already in there to make coupons exclusive offers. I was wondering if there was a way to sort coupons by sort order, then by exlusivity, and then by the end date.</p>

<p>Here is a sample of the code:</p>

<pre><code>var allLocalCoupons = merchant.Coupons
            .Where(c =&gt; c.IsActive
                        &amp;&amp; c.StartDate &lt;= DateTime.Now
                        &amp;&amp; (c.EndDate &gt; DateTime.Now || c.EndDate == null)
                        &amp;&amp; (c.ExclusiveCouponOffer == ApplicationCode || 
c.ExclusiveCouponOffer == null))
            .OrderBy(c =&gt; c.EndDate)
            .ToList();
</code></pre>
