What is the meaning of Swordtail?

One of many species of freshwater fish, in genus Xiphophorus, others of which are called platyfish.

Any of various papilionid butterflies that have a long sword-like projection from the tornal section of each hindwing.

Source: wiktionary.org