$('#level1").prepend(data).SortableAddItem($('div.groupItem:eq(0)'));this is returning an object but not the ID.
Just tack on attr to your selection. Something like this would probably work:
$('#level1').prepend(data).SortableAddItem($('div.groupItem:eq(0)').attr('id'));
Mike

