Array contains
Lets say we have two arrays [1,2,3,4,5,6,7,8,9] & [9,1,4,5,2,3,6,7,8] . Now we know that these arrays have the same elements. is there a quick asset way to find whether these arrays have the same elements or not?
sorting and iterating is one trivial way i can think of. 

Is there a better way to do this with a really clean looking code ??
Array contains
===

Lets say we have two arrays [1,2,3,4,5,6,7,8,9] & [9,1,4,5,2,3,6,7,8] . Now we know that these arrays have the same elements. is there a quick asset way to find whether these arrays have the same elements or not?
sorting and iterating is one trivial way i can think of. 

Is there a better way to do this with a really clean looking code ??