Skip to content

Commit

Permalink
Apply element sorter in AssertIncludeQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Oct 31, 2019
1 parent ca8bc64 commit ee8061d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ public override async Task<List<TResult>> AssertIncludeQuery<TResult>(
elementSorter = (Func<TResult, object>)sorter;
}

if (elementSorter != null)
{
actual = actual.OrderBy(elementSorter).ToList();
expected = expected.OrderBy(elementSorter).ToList();
}

if (clientProjections != null)
{
foreach (var clientProjection in clientProjections)
Expand Down

0 comments on commit ee8061d

Please sign in to comment.