This does work for swords as well. But raising the water temperature should be done during the whole gestation period to influence the sax ratio of the new offspring.Water temperature has been shown to affect the sex of shrimp during development.
And yes, it's not a proven fact that temperature can be of influence but it's something we've experienced by own experience. And it's also a conclusion of tests but they just don't know how to explain in detail how it works. Lik more scientific tests (or research) talk about conclusions instead of prove.
It's not a 100% guarantee but most of the time, it does work. As a seasoned breeder of livebearers, I dare saying that.