IQueryable OrderBy expression in .NET core
<p>In a .Net core library it does not allow to call <code>IQueryable.OrderBy</code> with an expression as param </p>

<p>This is an example of the code:</p>

<pre><code>public class Elem
{
    public string Id { get; set; }
    public static IQueryable&lt;Elem&gt; SortById(IQueryable&lt;Elem&gt; paramSequence)
    {
        return paramSequence.OrderBy(x =&gt; x.Id);  //this gives error
    }
}
</code></pre>

<p>I have added the <code>System.Linq.Expression</code> package. This is my project file:</p>

<pre><code>{
    "version": "1.0.0-*",
    "dependencies": {
        "NETStandard.Library": "1.5.0-rc2-24027",
        "System.Linq.Expressions": "4.0.10"
    },

    "frameworks": {
        "netstandard1.5": {
            "imports": "dnxcore50"
        }
    }
}
</code></pre>

<p>Any idea?</p>