C# Sort, cannot convert lambda expression to System.Array
<p>Based on what I've found on .Sort() this should work</p>

<pre><code>using System;
using System.Linq;

public class Test
{
    public static void Main()
    {
        int[] test = new int[] {6, 2, 1, 4, 9, 3, 7};
        test.Sort((a,b) =&gt; a&lt;b);
    }
}
</code></pre>

<p>However, I'm getting this error message:</p>

<pre><code>error CS1660: Cannot convert `lambda expression' to non-delegate type `System.Array'
</code></pre>

<p>That's the simplest version I could find to get that error.  In my case, I'm taking a string, giving it a complex ranking value, and comparing that.</p>

<p>What am I missing here?</p>