This is truth and not a myths, that many reef fish are automatically able to change sexes. The anemonefish or
clown fish are born male and when the time right time come, has the ability to turn into females.

Interestingly, the largest male automatically turns into dominant female when this happen, the second largest male will turn into the dominant male. The sub-adult males will remain the same until one or both dominant par die.

It is circles of position:-

(i) if the female dies, the dominant male will turns into a female (Dominant female).

(ii) a sub-adult male or the largest sub-adult male will take over as dominant male.

distinctively, every position between male/female and sub-adult and juveniles have different colors between them to distinguish their place in the group