You were convicted of sexual misconduct a misderminor but two jobs that asked about felonys didnt hire you is that legal?

It's not "legal" if the reason they didn't hire you was because of the misdemeanor. Unfortunately, they aren't going to tell you this is the reason you weren't hired, because that's not legal grounds for not hiring.