title: What is the best way to compare 2 integer lists / array in C#
body: <p>I want to compare 2 integer list for equality. I am happy to sort them in advance if that makes it easier. Here is an example of two things that i want to compare. For the below, i want the result to be true.</p>
  
  <p>NOTE: there will never be any duplicates in the list (no repeating values)</p>
  
  <pre><code> List&lt;int&gt; list = new List&lt;int&gt;(){1, 4,6,7};
   int[] myArray = new int[]{1, 6,7 ,4};
  </code></pre>