You can do array differences, if the result is the empty array, the 2 arrays contained the same elements:
>> [1,2,3]-[3,1,2] #=> []
If you still have elements left, then not all elements of the first array were present in the second one:
>> [1,2,5]-[3,1,2] #=> [5]