diff --git a/test/EFCore.Specification.Tests/Query/NorthwindGroupByQueryTestBase.cs b/test/EFCore.Specification.Tests/Query/NorthwindGroupByQueryTestBase.cs index f19ec1e02c0..965477edae0 100644 --- a/test/EFCore.Specification.Tests/Query/NorthwindGroupByQueryTestBase.cs +++ b/test/EFCore.Specification.Tests/Query/NorthwindGroupByQueryTestBase.cs @@ -1988,7 +1988,7 @@ public virtual Task Select_nested_collection_with_groupby(bool async) ? c.Orders.GroupBy(o => o.OrderID).Select(g => g.Key).ToArray() : Array.Empty()), assertOrder: true, - elementAsserter: (e, a) => Assert.True(e.SequenceEqual(a))); + elementAsserter: (e, a) => Assert.True(e.OrderBy(x => x).SequenceEqual(a.OrderBy(x => x)))); [ConditionalTheory] [MemberData(nameof(IsAsyncData))]