I had to add more sorts on the top of d1e4744669e62be18cfaff97622bd0d2a4301ab5
Now the tests pass both on perl 5.18 and 5.26 (both on MacOSX).
Actually, not all of them were necessary to make the test pass (only a subset was), but I edited them anyway, I don't think there is a harm in iterating through hashes via sorted sequence.
But I can provide the minimal patch file that has only the differences that were needed to make this test pass (in case there is a wish for "minimal" patch).
I had to add more sorts on the top of d1e4744669e62be18cfaff97622bd0d2a4301ab5 Now the tests pass both on perl 5.18 and 5.26 (both on MacOSX).
Actually, not all of them were necessary to make the test pass (only a subset was), but I edited them anyway, I don't think there is a harm in iterating through hashes via sorted sequence. But I can provide the minimal patch file that has only the differences that were needed to make this test pass (in case there is a wish for "minimal" patch).