The problem is that you set up the accordion without the header
property and try to add it later when setting the sortable. You must set it when you're building the accordion widget, like this:
function subscribe_accordion_to_hoverintent_event(accordionId) {
$(accordionId).accordion({
header: "> div > h3",
event: "click hoverintent"
});
}
And you can remove it from the sortable function:
function set_accordion_as_sortable(accordionId) {
$(accordionId).sortable({
axis: "y",
handle: "h3",
stop: function (event, ui) {
// IE doesn't register the blur when sorting
// so trigger focusout handlers to remove .ui-state-focus
ui.item.children("h3").triggerHandler("focusout");
}
});
}
JSFiddle result: http://jsfiddle.net/hNp2z/1/
Also, the id's in your question don't match, be sure to check those too.