title: dynamic sort columns doesn't work in linq
body: <p>in linq i'm tring to create gridview with dynamic sort  columns 
  can any one help me what is worng on below code and why it does't work </p>
  
  <pre><code>// i created this function to get column value which i need to sorty by 
  private static string GetReflectedPropertyValue( object subject, string field)
          {
              object reflectedValue = subject.GetType().GetProperty(field).GetValue(subject, null);
              return reflectedValue != null ? reflectedValue.ToString() : "";
          }
  </code></pre>
  
  <pre><code>// this is my grid query 
  List&lt;ticketSearchRes&gt; tickets = new List&lt;ticketSearchRes&gt;();
  // here i deteermined sort direction ascending or desc
              bool asc = (gridViewInputsVM.SortDirection == "asc") ? true : false;
              bool desc = (gridViewInputsVM.SortDirection != "asc") ? true : false;
              IQueryable&lt;ticketSearchRes&gt; source = (from ticket in _db.TblTicket
                                                    where (searchRes.assignTic == 1) ? ticket.AssignedTo == CurrentuserId : true
                                                    where (searchRes.myTicket == 1 &amp;&amp; searchRes.forOthers != 1) ? ticket.CreatedFor == CurrentuserId : true
                                                         orderby
                                                    asc ? GetReflectedPropertyValue(ticket, "TicketTitle") : "",
  // here i need to get dynamic column which i need to sort by 
                                                    desc ? GetReflectedPropertyValue(ticket, "TicketTitle") : ""  descending  // doesn't work
                                                    select new ticketSearchRes
                                                    {
                                                        title = (ticket.TicketTitle != null) ? ticket.TicketTitle.ToString() : "",
                                                        ticId = ticket.TicketId.ToString()     
   }).AsQueryable();                                          
  
  </code></pre>