A state appeals court ruled Thursday that a former Allen & Overy lawyer who leveled a $35 million lawsuit at the firm for sexual harassment, retaliatory discharge and emotional distress properly had her suit dismissed after she refused to submit to a court-ordered psychological exam.

In addition, Deidre Holmes Clark, once a senior attorney at the international firm, was rightfully sanctioned by the trial court for violating its sealing orders when she maliciously posted about the case on social media in an attempt to harass or injure Allen & Overy, a unanimous Appellate Division, First Department, panel decided.