title: Get sortable index on click
body: <p>I would like to get the index of the list item <code>&lt;li&gt;</code> that I have clicked when using jquery ui sortable. I can get it using the sortable 'start' and 'stop' events, but how would I get it just using a click of the sortable item itself.</p>
  
  <p>Here is what I use to get it on a 'stop' event:</p>
  
  <pre><code>stop: function(event, ui){
  endpos = ui.item.index() + 1;
  }
  </code></pre>