If you want the a
element to be the first child, use the following:
$('table td a').each(function(){
$(this).prependTo($(this).parent());
});
Alternatively, you could also use this if you only want it to be inserted before its previous sibling.
$('table td a').each(function(){
$(this).insertBefore($(this).prev());
});