There are still big jumps in voicing.
The new script must find the highest pitch value of the selected items, then transpose it down 1 octave and rearrange the chord so that the pitch stays from the bottom up.
If you do this a few times you get tight voicing.
edit:
reordering here does not mean moving audio items as can be seen in the GIF.
Reordering only means changing the pitch entries like this.