sort fix.

This commit is contained in:
David Lebee
2018-10-22 22:08:27 -05:00
parent 788078bc49
commit 7a39d70a3e
2 changed files with 64 additions and 0 deletions
@@ -68,11 +68,18 @@ namespace PoweredSoft.DynamicQuery
return;
}
bool isAppending = false;
Criteria.Sorts.ForEach(sort =>
{
var transformedSort = InterceptSort<T>(sort);
if (transformedSort.Count == 0)
return;
transformedSort.ForEach(ts =>
{
CurrentQueryable = CurrentQueryable.OrderBy(ts.Path, ts.Ascending == false ? QueryOrderByDirection.Descending : QueryOrderByDirection.Ascending, isAppending);
isAppending = true;
});
});
}