Добавление обратного вызова (пример взят и расширен из документов):
$( "#sortable1, #sortable2" ).sortable({
connectWith: ".connectedSortable",
update : function(event, ui) {
//ui.sender is the list the item comes from
//ui.item is the current item that moved
//ui.position is the current position
}
}).disableSelection();
Теперь делайте все, что хотите, в обратном вызове, используя paremeter ui
.