I want to make the following query dynamic.
var t = from r in dt.AsEnumerable()
orderby r.Field< int >("id") ascending
select r;
void query(string sorttype,string sortorder)
Is it possbile to change the order by part so that those paramater will come from parameters of a function like sorttype for id in here and sortorder for ascending.