title: check if integers are in order condition jquery
body: <p>Hi still getting my head around jQuery.  I'm fairly new to it and learning each day.   I'm more used to javascript because you know what's happening step by step.  </p>
  
  <p>Even though jQuery is "write less, do more"  the functions aren't clearly explained and I find it quite confusing.</p>
  
  <p>Anyway my question...I have a sortable function where there are 7 numbers randomly listed.  In this case, 7,1,6,2,3,5,4...An user can drag the numbers in any order they wish..  I would like jQuery to fire an alert to say "well Done" when the user matches .sortable "#list" numbers in the right order.</p>
  
  <p>I know there's elements of javascript in the jQuery code.  Not sure what the jQuery equivalent would be?</p>
  
  <p>Thanks.</p>
  
  <p>Html:</p>
  
  <pre><code> &lt;ul id="list" class="inline-list no-bullet"&gt;
                              &lt;li&gt;7&lt;/li&gt;
                              &lt;li&gt;1&lt;/li&gt;
                              &lt;li&gt;6&lt;/li&gt;
                              &lt;li&gt;2&lt;/li&gt;
                              &lt;li&gt;3&lt;/li&gt;
                              &lt;li&gt;5&lt;/li&gt;
                              &lt;li&gt;4&lt;/li&gt;
     &lt;/ul&gt;
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>$(document).ready(function () {
              $("#list").sortable({
  
                  revert: true,
                  containment: 'parent',
                  update: function (event, ui) {
  
                      alert("List updated");
                  }
  
                  var orderedList = [1, 2, 3, 4, 5, 6, 7];
  
                      for (i = 0; i &lt;list.length; i++)
                         {
                               if (orderedList[i] == "list"[i]) 
                          {
                               alert('Well Done!');
  
                  }
  
              });
  
  
          });
  </code></pre>