title: Comparing Order of 2 Python Lists
body: <p>I am looking for some help comparing the order of 2 Python lists, <strong>list1</strong> and <strong>list2</strong>, to detect when <strong>list2</strong> is out of order.</p>
  
  <ul>
  <li><strong>list1</strong> is static and contains the strings <code>a,b,c,d,e,f,g,h,i,j</code>. This is the "correct" order.</li>
  <li><strong>list2</strong> contains the same strings, but the order and the number of strings may change. (e.g. <code>a,b,f,d,e,g,c,h,i,j</code> or  <code>a,b,c,d,e</code>) </li>
  </ul>
  
  <p>I am looking for an efficient way to detect when <strong>list2</strong> is our of order by comparing it against <strong>list1</strong>.</p>
  
  <p>For example, if <strong>list2</strong> is <code>a,c,d,e,g,i</code> should return true (as the strings are in order)</p>
  
  <p>While, if <strong>list2</strong> is <code>a,d,b,c,e</code> should return false (as string d appears out of order)</p>