Sortable JqGrid using LINQ to MySQL (DbLinq) and Dynamic LINQ – Orderby doesn’t work

Try with the following public ActionResult All(string sidx, string sord, int page, int rows) { IQueryable<Ticket> repository = ZTRepository.GetAllTickets(); int totalRecords = repository.Count(); // first sorting the data as IQueryable<Ticket> without converting ToList() IQueryable<Ticket> orderdData = repository; System.Reflection.PropertyInfo propertyInfo = typeof(Ticket).GetProperty (sidx); if (propertyInfo != null) { orderdData = String.Compare(sord,”desc”,StringComparison.Ordinal) == 0 ? (from x … Read more