title: IE 8 prompts user on "slow" jQuery script
body: <p>I have a form with over 100 list items that I <em>must</em> reorder on submit. The following code works to reorder my list without any apparent problems in Firefox; however, IE prompts with the message "A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?" If the user clicks 'No', the script will work as expected.</p>
  
  <pre><code>var listitems = $(form).find('li').get();
  listitems.sort(function(a, b) {
      var compA = $(a).attr('id');
      var compB = $(b).attr('id');
      return (compA - compB);
  });
  </code></pre>
  
  <p>Any ideas on how to make this more efficient?</p>