Lets say i have the following unordered list
Hank Alice
Found this even neater:
$('li').on('click', function() { $(this).parent().prepend(this); });
Live example