Address test_merging_where_relations failure by adding `order("posts.id")`
Merge pull request #12929 from yahonda/test_merging_where_relations_add_order

Address test_merging_where_relations failure by adding order