Correct delete operation to result in correct ordering of nodes