This is what I have
$wrapper.find('li').sort(function (a, b) {
return +a.getAttribute('data-val') - +b.getAttribute('data-val');
});
It works, as I see in Chrome dev tool an array of objects is indeed returned but...my question is: What's up with that return? How can I use that array?
What I want to do i to take the returned array, and stick it inside a tag.
.sort()isn't a supported jQuery method.