Although society generally has attempted to eradicate the separation of persons on the basis of an immutable characteristic, the segregation of prisoners on the basis of sex has withstood this societal evolution. Sexually segregated prisons are, in fact, the "norm" throughout the United States.
https://digitalcommons.law.wne.edu/cgi/viewcontent.cgi?referer=https://www.google.com/&httpsredir=1&article=1210&context=lawreview