how can I create a dynamic lambda expression to pass to use in my orderby function inside linq?
I basically want transform queryResults.OrderByDescending();
queryResults.OrderByDescending();
See Dynamic LINQ
Alternately, you can use a switch statement, Reflection or the dynamic type in C# 4 to return the value based on a supplied field name.
dynamic
This has also been done to death previously