Another "magic" story:
Had 7 surviving swordtail fry and put those in 10 gallon. After 2 months took 3 females out to add to the 55 (55 had already a male) and was left with 4 females (very clearly female). Within 2 weeks one of them developed a gonopodium. A month later (all of them are 4 months now) the male started growing the typical sword.
Asked 2 LFS and both said this is a survival thing and is known to happen.
I am very happy about this because now I have two groups of 1 male, 3 female swordtails and they are gorgeous!
L.
Swordtail and guppy fry ALL have female appearance until they start sexually maturing. As they grow, their anal fin will become longer and develope into a gonopodium. This isn't a sex change. It's sexual maturation. My swordtails usually take a few months to reach sexual maturity. There is no way to sex the fry before this point.
I read somewhere, long ago (and I certainly don't remember where) that the sex change in swordtails was always female to male (never male to female) and this only takes place occassionaly in old age, when the fish is no longer fertile.
If this really is the case, it's likely due to hormonal changes (or lack of hormones) at old age. Think menopause for fish. Women grow facial hair they didn't have before. I guess fish can grow gonopodiums. I'm glad I'm not a swordtail.
Physiology lesson: In human females, estrogen comes from the ovaries, and the adrenal glands secrete androgenic steroids (androgen hormones) which have a minimal effect on the developement of male characteristics. When women take steroids (for medicinal reasons, such as prednisone) at high doses for an extended period, they will develope some male characteristics (such as facial hair growth) because the adrenals are over stimulated. On the other hand, during menopause when estrogen levels drop, the effects of these hormones become more evident because they are available in a larger proportion to the estrogen which has gone missing.
In males, the steroids have the opposite effect. Forgive me if my terminology isn't exact. It's been 12+ years since I took anatomy/physiology.
Anyhow, I don't know fish anatomy, but I could speculate and say that something similar could very well happen with them.