Originally it was based on an implementation detail, but now the order doesn't matter - the test case sorts the pairs consistently when it compares the results to the expected (21fee8ce09f6583f0311622b5dd30bdb1a8e8db9)