title: jQuery UI sortable
body: <p>i have a ul, kinda like this:</p>
  
  <pre><code>&lt;ul id="sortable"&gt;
     &lt;li data-name="name1"&gt;
     &lt;li data-name="name2"&gt;
     &lt;li data-name="name3"&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I am using jQuery sortable and i need to know, when there is a sort change, what is the order of the lis. I am using:</p>
  
  <pre><code>$("#sortable").sortable({ 
          axis: 'y',
          stop: function(evt, ui){
              console.log($("#sortable").sortable('toArray'));
          }
      });
  </code></pre>
  
  <p>the problem with "toArray" is that it relies only on the unique ids of the items and i can't use that attribute on those lis, for reasons.</p>
  
  <p>Is there any way to make toArray, return an array with the data-attribute data-name instead of the id?</p>
  
  <p>Thanks</p>