title: How to turn off sorting with jQueryUI sortable?
body: <p>I have implemented jQueryUI sortable list and it works really nice. At some point in time, I wish to disable further sorting and keep item order as it is, without user being able to change it. </p>
  
  <p>It tried something this:</p>
  
  <pre><code>$('.sortable').sortable('disable'); 
  </code></pre>
  
  <p>and this: </p>
  
  <pre><code>$('.sortable').each(function() { $(this).sortable('disable'); });
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>$('.sortable').disable(); 
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>$('.sortable').cancel(); 
  </code></pre>
  
  <p>and various combinations of all that. All without success.</p>
  
  <p>Can anyone tell ne <i>The Right Way</i>&trade; to do it?</p>
  
  <p><strong>Update:</strong> I'm using jQuery 1.3.2 and jQueryUI 1.7.2. A possible problem could be that I have two independent sortable lists on the page, so I have sortable1 and sortable2 classes. I'm actually doing:</p>
  
  <pre><code>$('.sortable2').sortable('disable'); 
  </code></pre>
  
  <p><strong>Update2:</strong> the problem was me using .sortable instead of #sortable. Everything works fine now.</p>