An appeals court has overturned the dismissal of a sexual harassment case and ordered a new trial after finding a judge did not consider crucial evidence and relied on "a preconception of how a victim would act" in finding the plaintiff was an unreliable witness.