I have linq query which is as follows
string sortby="Date"; //it can be name or something else as well
var query=(from t in Uow.Transactions.GetAllWithReferences()
orderby t.Date descending
select t);
But I want to orderby differently based on sortby variable value. How can i do that using Linq?