diff --git a/test/EFCore.Specification.Tests/ManyToManyLoadTestBase.cs b/test/EFCore.Specification.Tests/ManyToManyLoadTestBase.cs index da9cd606cbb..cd8beb1dd27 100644 --- a/test/EFCore.Specification.Tests/ManyToManyLoadTestBase.cs +++ b/test/EFCore.Specification.Tests/ManyToManyLoadTestBase.cs @@ -965,6 +965,7 @@ public virtual async Task Load_collection_using_Query_with_filtered_Include_and_ var queryable = collectionEntry .Query() .Include(e => e.ThreeSkipFull.Where(e => e.Id == 13 || e.Id == 11)) + .OrderBy(e => e.Id) .Select(e => new { e.Id, e.Name, Count1 = e.OneSkipShared.Count, Count3 = e.ThreeSkipFull.Count }); var projected = async diff --git a/test/EFCore.SqlServer.FunctionalTests/ManyToManyLoadSqlServerTest.cs b/test/EFCore.SqlServer.FunctionalTests/ManyToManyLoadSqlServerTest.cs index 53b31ab5258..d330f3a2828 100644 --- a/test/EFCore.SqlServer.FunctionalTests/ManyToManyLoadSqlServerTest.cs +++ b/test/EFCore.SqlServer.FunctionalTests/ManyToManyLoadSqlServerTest.cs @@ -177,7 +177,8 @@ INNER JOIN ( FROM [EntityOneEntityTwo] AS [e3] INNER JOIN [EntityTwos] AS [e4] ON [e3].[EntityTwoId] = [e4].[Id] ) AS [t] ON [e2].[Id] = [t].[EntityOneId] -WHERE [e2].[Id] = @__p_0"); +WHERE [e2].[Id] = @__p_0 +ORDER BY [t].[Id]"); } public override async Task Load_collection_using_Query_with_join(bool async)