title: How to use Dynamic LINQ in MVC4?
body: <p>This is the default action from the "View" of my MVC4 application.</p>
  
  <pre><code>public ActionResult Index(string sort = "R_ResDate", 
                            string sortdir = "DESC", 
                            int page = 1)
  {
      List&lt;Result&gt; results = modRes.Results.ToList();
  
      var results = from r in results
                    orderby r.R_ResultDate descending
                    select r;
  
      return View(results);
  }
  </code></pre>
  
  <p>Where <code>modRes</code> is a Model class,</p>
  
  <p>I wanted to use the sort column, sortDir, and page arguments in the dynamic linq to derive the results.</p>
  
  <p>Any help would be appreciated.</p>