• emmet, this made me think of you.

    if ((getChildIndex(items[i]) < getChildIndex(items[next])) != (items[i].y < items[next].y)) {

                    swapChildren(items[i], items[next]);
                }
    
About

Avatar for turnpedal @turnpedal started