tags:

views:

32

answers:

1

I am very new to LINQ and have a class method, which when called, returns a DbDataReader object. How would I sort this dynamically using a LINQ query expression where the sort expression is provided as a string (e.g. "LastName DESC")

A: 

Can't take any credit - links in this question to Dynamic Linq and how to do it without:

http://stackoverflow.com/questions/41244/dynamic-linq-orderby

Murph