stop: function ( event, ui) {
var inputs = $(ui.item).closest('.connectedSortable').find('.currentposition');
var nbElems = inputs.length;
$(inputs).each(function(idx) {
$(this).val(nbElems - idx);
});
}