jQuery(document).ready(function($){
    $('.howcan-sortable-list').each(function(){
        var list = $(this);
        var input = list.next('input[type="hidden"]');
        list.sortable({
            placeholder: "sortable-placeholder",
            update: function() {
                var values = [];
                list.find('.howcan-sortable-item').each(function(){
                    values.push($(this).data('value'));
                });
                input.val(values.join(',')).trigger('change');
            }
        });
    });
});