test: adds sort before comparing items, as pypy seems to have a different order in hash than cpython.