title: Test if two lists of lists are equal
body: <p>Say I have two lists of lists in Python,</p>
  
  <pre><code>l1 = [['a',1], ['b',2], ['c',3]]
  l2 = [['b',2], ['c',3], ['a',1]]
  </code></pre>
  
  <p>What is the most elegant way to test they are equal in the sense that the elements of <code>l1</code> are simply some permutation of the elements in <code>l2</code>?</p>
  
  <p>Note to do this for ordinary lists <a href="https://stackoverflow.com/questions/9623114/python-are-two-lists-equal">see here</a>, however this uses <code>set</code> which does not work for lists of lists.</p>