Sort label with attribute
<p>I have this HTML </p>

<pre><code>&lt;td colspan="4" class="item"&gt; DERBY LINE, VT 05830&lt;br&gt;
    &lt;label for="" data-sort="16.26"&gt;UPS Ground $16.26&lt;/label&gt;&lt;br&gt;
    &lt;label for="" data-sort="27.57"&gt;UPS 3 Day Select&amp;reg; $27.57&lt;/label&gt;&lt;br&gt;
    &lt;label for="" data-sort="33.87"&gt;UPS 2nd Day Air&amp;reg; $33.87&lt;/label&gt;&lt;br&gt;
    &lt;label for="" data-sort="72.82"&gt;UPS Next Day Air $72.82&lt;/label&gt;&lt;br&gt;
    &lt;label for="" data-sort="7.99"&gt;USPS Priority $7.99&lt;/label&gt;&lt;br&gt;
    &lt;label for="" data-sort="9.61"&gt;FEDEX SmartPost&amp;reg; FedEx Delivered Via USPS $9.61&lt;/label&gt;&lt;br&gt;
    &amp;nbsp;
    &lt;input type="button" name="Button5" id="Button5" onmouseout="this.className='btn'" onmouseover="this.className='btn_over'" onclick="document.shipquote.action='shipquote.asp?action=clean';document.shipquote.submit();" value="Clear" class="btn"&gt;
&lt;/td&gt;
</code></pre>

<p>And I need it to be sort it by the "data-sort" attribute, right now I'm using 
<a href="http://james.padolsey.com/javascript/sorting-elements-with-jquery/" rel="nofollow">this element sorter</a>
but when I run the scripts it returns this  </p>

<pre><code>&lt;td colspan="4" class="item"&gt; DERBY LINE, VT 05830&lt;br&gt;
    &lt;label for="" data-sort="16.26"&gt;UPS Ground $16.26&lt;/label&gt;&lt;br&gt;
    &lt;label for="" data-sort="27.57"&gt;UPS 3 Day Select&amp;reg; $27.57&lt;/label&gt;&lt;br&gt;
    &lt;label for="" data-sort="33.87"&gt;UPS 2nd Day Air&amp;reg; $33.87&lt;/label&gt;&lt;br&gt; 
    &lt;label for="" data-sort="7.99"&gt;USPS Priority $7.99&lt;/label&gt;&lt;br&gt;
    &lt;label for="" data-sort="72.82"&gt;UPS Next Day Air $72.82&lt;/label&gt;&lt;br&gt;
    &lt;label for="" data-sort="9.61"&gt;FEDEX SmartPost&amp;reg; FedEx Delivered Via USPS $9.61&lt;/label&gt;&lt;br&gt;
    &amp;nbsp;
    &lt;input type="button" name="Button5" id="Button5" onmouseout="this.className='btn'" onmouseover="this.className='btn_over'" onclick="document.shipquote.action='shipquote.asp?action=clean';document.shipquote.submit();" value="Clear" class="btn"&gt;
&lt;/td&gt;
</code></pre>

<p>as you can see it runs but for some reason it gets just the first number on the attr. The call I'm using  is the following one :</p>

<pre><code>$('.item label').sortElements(function(a, b){
    return $(a).attr("data-sort") &gt; $(b).attr("data-sort") ? 1 : -1;
});       
</code></pre>

<p>What Am I doing wrong?</p>
