I want to create the following method which takes in a lambda expression and orders data by it. I can't seem to correctly set this up.
Would look something like this where ??? is the lambda expression:
public static MyList<T> PageAndSort<T>(this IEnumerable<T> data, ???)
Would be used like this:
MyList.PageAndSort(List<MyEntity> data, x=>x.ChildEntity.Name)