I have an array (bigArray from the example) that contains multiply arrays containing strings. I need to add to bigArray another array (such as arrayA) but I want to check if an array like that already exists. If it exists I don't want to add it. The order of the small arrays (such as arrayX from the example) doesn't differentiate them from one another so if I already have an array such as arrayA containing the same arrays but in different order,(arrayZ,arrayY, arrayX instead of arrayX,arrayY,arrayZ but with the same string content) that array won't be added to the big array.
How can I accomplish this?
Examples:
Arrays example:
-bigArray
--arrayA
----arrayX -> 16,4,5,6,64
----arrayY -> 1,3,6,72,14
----arrayZ -> 13,73,50,34
--arrayB
----arrayX -> 1,4,5,6,4,2
----arrayY -> 1,4,6,12,14
----arrayZ -> 13,33,50,34
The order of the small arrays doesn't differentiate them:
--arrayc
----array -> 16,4,5,6,64
----array -> 1,3,6,72,14
is the same as:
--arrayd
----array -> 1,3,6,72,14
----array -> 16,4,5,6,64
Therefore arrayD won't be added to the big array.