Swift compare 2 array of type [int] without guaranteed order : <p>I make app for performing tests. For check for valid answer i have array of correct answers, of type [Int]. It may be, for example, [1, 5, 10].</p>

<p>Also i have array of questions id's  that user entered, also [Int] type.</p>

<p>Now i have to somehow compare that arrays. But, [1,5,10] should be equal to [10,1,5] and [5,1,10], etc., because order is not guaranteed. How to achieve that?</p>
