Hi! I have a suggestion: add a "keep clone id" option. Because I have a page of options with clonable sortable groups, that is uses in other dynamic options. So, the problem is when I'm sorting group items, the dynamic options outside doesn't keeps row position, because I can't register each cloned item as unique.
It's hard to explain, but let me give you a comparison. You are holding collapse state of collapible group while 'save_state' is set to true. I want to have a simular logic for each cloned item. The result will be like:
The logic behind saving state for collapsible groups is quite simple that you can do similarly. Just add a hidden field to the group and use the CSS class to access to that field to set/change value. Because it's an actual field, the value will be saved when the group is saved.