ref #3722, ref #8127, ref #10067, ref #5536 add orphan removal to ordered lists to avoid null value, sortindex and record not deleted issues
ref #3722, ref #8127, ref #10067, ref #5536 add orphan removal to ordered lists to avoid null value, sortindex and record not deleted issues