Dynamic LINQ OrderBy on IEnumerable<T> / IQueryable<T>
Asked 07 September, 2021
Viewed 3.1K times
  • 60
Votes

I found an example in the VS2008 Examples for Dynamic LINQ that allows you to use a sql-like string (e.g. OrderBy("Name, Age DESC")) for ordering. Unfortunately, the method included only works on IQueryable<T>. Is there any way to get this functionality on IEnumerable<T>?

20 Answer