Keep elements in "clones" array in order

In order for the "remove" buttons to work as expected, we
need to make sure the cloned elements stay in order in
data.clones.