Those that produce asexually would have an advantage. If the changing environment causes some of a species to die off, the organism that produces sexually would have a lesser chance of reproducing enough to keep the species alive and thriving. Those that produce asexually wouldn't need a partner to reproduce with meaning that even if some of the species were to die off they could still reproduce with no problem. Hope this helps :)