How to create a Comparer from a lambda function easily?
<p>I am wondering if there was a class provided in the .Net framework that implements IComparer and that can be constructed from a lambda function.
That would be useful to be able to do:</p>

<pre><code>void SortByLength(List&lt;string&gt; t)
{
    t = t.OrderBy(
           s =&gt; s, 
           Comparer&lt;string&gt;.FromLambda((s1,s2) =&gt; s1.Length.CompareTo(s2.Length))
        ).ToList();
}
</code></pre>

<p>It would be much easier than having to define a Comparer class each time.
I know it is not complicated to create such a FromLambda method, but I was wondering if there was an existing way in the framework as I see this as being a pretty common feature.</p>
