Orders a queryable by all specified sorters (passed as property names)
public static IOrderedQueryable<T> OrderByMany<T>(this IQueryable<T> src,
IEnumerable<string> sorters)| parameter | description |
|---|---|
| T | |
| src | Source IQueryable to apply ordering to |
| sorters | Enumeration of property to sort on (to sort by descending order, add a "-" at the end of the property name) |
Returns a IOrderedQueryable
- class DynamicQueryableExtensions
- namespace Wokhan.Linq.Extensions