im working with EF codefirst and i need to sort the list of entries, i tried but could not find how to solve this task:
Lets say we have expression
thelist.orderby(p=> p.Name)
Question is : How to pass string instead of "p.Name" in case if i want to order list by p.Age for example
Because there are like 20 or more options to sort so im trying to shrink the code