> $("div.items").sort(function(a,b){
> return a.innerHTML > b.innerHTML ? 1 : -1;
> }).remove().appendTo("#itemlist");
In my code, I don't even need to call remove(). Not sure if this is
how it's supposed to work or not...
<div id="entries">
<div class="entry">...</div>
<div class="entry">...</div>
</div>
$('.entry').sort(sort_func).appendTo('#entries');
Results in an in place sort. This is the desired behavior for what I
want to do, but your example above suggests that's not what you were
expecting it to do.
Thanks for the sort function. It works great!
--Erik
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/