[jQuery UI]Sortable

[jQuery UI]Sortable

Hi,

I'm making use of the sortable method in jquery UI. I'm using it to sort images in a div. I have a problem with making use of this.

If the document loads with images in the div, the images are sortable and the entire thing works like a dream. If the document loads with no images in the div and I dynamically add them to it (after load that is obviously) it's crippled. The images won't sort, or at least not how they normally would.

Can anyone explain or does anyone recognize this behavior? I'm trying to get around it, so if anyone has a thought please let me know :)