Seeing, as noted earlier, I tried to do the same as in the accepted answer. It probably worked then, but it doesn't seem to work anymore:
expect([1, 2, 3, 4]).to.have.all.members([2, 4, 3, 1]);
Gives the following error:
AssertionError: expected 1 to be an array
I did a bit more research and found a migration request that added this functionality back in 2013:
https://github.com/chaijs/chai/pull/153
So, the official way to do it now:
expect([1, 2, 3, 4]).to.have.same.members([2, 4, 3, 1]);
For completeness, an error occurs here, created by two different sets:
AssertionError: expected [ 1, 2, 3, 4 ] to have the same members as [ 4, 3, 1 ]
Hope this helps anyone looking for the same answer now. :-)