Implement dependent reordering for References.