I have a set of divs that have been cloned via Jquery ui Draggable/ Droppable.
The original elements have numeric IDs (1,2,3, etc.), which determines their hierarchy. Cloned element IDs are appended with the prefix "clone_" so that they remain unique:
My question is, how can I sort the cloned items numerically according to their hierarchy? I can find the number:
var cloneID = $('.clone').attr('id');
var IDstring = cloneID.split("_");
var hierarchy = IDstring;
But I can't figure out the next step. Thanks.