An easier way to do this check would be to use sets to make ordering not matter. Then it's just a matter of using `eq_`.