Why was this logic introduced? At the very least, we should consider using the rspec's built-in:

```
array.should match_array(another_array)
```

for order-insensitive comparisons.