jQuery('.TiddlySpaceInclusion ul').sortable({ // this could be improved by setting a class on the ul and using that as the selector
stop: function(event, ui) {
var out = [];
jQuery('.TiddlySpaceInclusion ul li a').not('.deleteButton').each(function() { // this could be improved by adding a class to the li links (not the delete links so they can be addressed individually.
out.push(jQuery(this).text());
})
alert(out.join('\n'));
}
});