public static IEntitySorter <T> ThenByDescending <T>(this IEntitySorter <T> sorter, string propertyName) { var builder = new EntitySorterBuilder <T>(propertyName); builder.Direction = SortDirection.Descending; return(builder.BuildThenByEntitySorter(sorter)); }
public static IEntitySorter <T> ThenBy <T>( this IEntitySorter <T> sorter, string propertyName) { var builder = new EntitySorterBuilder <T>(propertyName) { Direction = SortDirection.Asc }; return(builder.BuildThenByEntitySorter(sorter)); }