title: How to check if two lists of tuples are identical
body: <p>I need to check to see if a list of tuples is sorted, by the first attribute of the tuple. Initially, I thaught to check this list against its sorted self. such as...</p>
  
  <pre><code>list1 = [(1, 2), (4, 6), (3, 10)]
  sortedlist1 = sorted(list1, reverse=True)
  </code></pre>
  
  <p>How can I then check to see if list1 is identical to sortedlist1? Identical, as in <code>list1[0] == sortedlist1[0], and list1[1] == sortedlist1[1]</code>.</p>
  
  <p>The list may have a length of 5 or possibly 100, so carrying out <code>list1[0] == sortedlist1[0], and list1[1] == sortedlist1[1]</code> would not be an option because I am not sure how long the list is.
  Thanks</p>