Sortable list with different height items

Hi there I found this so wonderful pie by the super talented @Jeff Clarke (Ex-ProtoPie)

Sortable List | ProtoPie Cloud

which was going to be perfect - until our client decided that some of the items need to be a different height. I am thinking that we would need to incorporate a current height variable to determine how far the other items need to move up/down when the selected items is being dragged?! But this would also mean that we can’t use the y position to determine the order.

I think perhaps to determine each instances y position we could assign an ‘orderID’ to each instance and query the y position of current orderID -1 to get the yPos of the previous item then add the height of the previous item to determine the yPos of the current item?!

I would love to know if anyone has any ideas? Many thanks in advance