private void sortControls(SkinningControl skinningControl) {
        assert skinningControl != null;

        int dacIndex = RagUtils.findIndex(spatial, this);
        assert dacIndex != -1;
        int scIndex = RagUtils.findIndex(spatial, skinningControl);
        assert scIndex != -1;
        assert dacIndex != scIndex;

        if (dacIndex > scIndex) {
            /*
             * Remove the SkinningControl and re-add it to make sure it will get
             * updated *after* this control.
             */
            spatial.removeControl(skinningControl);
            spatial.addControl(skinningControl);

            dacIndex = RagUtils.findIndex(spatial, this);
            assert dacIndex != -1;
            scIndex = RagUtils.findIndex(spatial, skinningControl);
            assert scIndex != -1;
            assert dacIndex < scIndex;
        }
    }
Sort the controls of the controlled spatial, such that this control will
come BEFORE the specified SkinningControl.

@param skinningControl (not null)
jme3-jbullet/src/main/java/com/jme3/bullet/animation/DacLinks.java