Hi,
I think <code>$container.append($container.children('.clearfloat').detach());</code> is better.

But, can you tell me why append <code> $submenu </code> and move clear element to the end? The result is same.

And for http://sourceforge.net/p/phpmyadmin/bugs/4336/ , is just a style bug.