sorry if this has been asked many times before. I have a short demo here: http://verens.com/demos/php_and_jquery/8-2-sorting-trees/sorting-trees.php the problem is that when you drag an item right out of the tree and drop, it drops into its own nested container. is this a bug? it seems to me that an element should never be allowed to drop into its own descendant.