title: How to query column name compare with a string?
body: <p>I want to sort my columns on the base of column name which is a string but unfortunately I couldn't achieve this because <code>OrderByDescending</code> compares something else, but I am sending a string.</p>
  
  <pre><code>public List&lt;DOlead&gt; sortLead(DOuser user, string Item)
      {
          List&lt;DOlead&gt; ObjLead = new List&lt;DOlead&gt;();
          ObjLead = _Context.leads.Where(x =&gt; x.is_converted == false).OrderByDescending(Item).ToList();
          return ObjLead;
      }
  </code></pre>
  
  <p>Kindly Help me out?</p>