VP-177 editing logic for parent sort option