No discrimination based on sex shall be made in the formulation of the scale of wages, compensation, appointment, assignment, promotion, transfer, resignation, dismissal, or other matter pertaining to the employment of teachers in any school, state college, college, university, or other educational institution, in this state, supported in whole or in part by public funds unless it is open to members of one sex only, in which case teachers of that sex may be employed exclusively.
N.J.S. § 18A:6-6