This is an archived article that was published on sltrib.com in 2015, and information in the article may be outdated. It is provided only for personal research purposes and may not be reprinted.

Brigham Young University remains one of the most hostile campuses in the country for gay and transgender students, according to an annual college ranking list.

The private university is not quite as high atop the list of LGBT-unfriendly schools as it was last year in an annual report from The Princeton Review.

This time around, Provo- based BYU took sixth place for its environment for gay students. That's down two slots from last year, when the LDS Church-owned school took fourth.

The Church of Jesus Christ of Latter-day Saints teaches that same-sex attraction is not a sin, but that acting on it is.

This year, the No. 1 spot went to Pennsylvania's Grove City College, a Christian liberal arts school of 2,500 students.

The Princeton Review, which rates the academic and social traits of campuses nationwide, recently released a number of annual Top 20 lists. On the other end of the spectrum, Emerson College in Boston was named the most accommodating to lesbian, gay, bisexual and transgender people.

No other Utah school made either the "most-friendly" or "most-unfriendly" lists.

This year, the BYU ranking is especially noteworthy. During the 2015 legislative session, Utah lawmakers, gay-rights advocates and Mormon leaders hammered out an anti-discrimination law that extends housing and employment protections to LGBT people while also safeguarding some religious liberties.

The legislation, which makes it illegal to discriminate against gay and transgender people in some instances, was hailed as a momentous compromise. But it does not apply to every entity in the state. Religious organizations, including BYU, are exempt.

Students at BYU do not have to be Mormons, but they must have an endorsement from a faith leader and also sign the school's Honor Code.

In response to a request for comment on the ranking, BYU spokeswoman Carri Jenkins pointed to a statement on the school's website.

"A student's stated same-gender attraction does not preclude them from attending BYU," the statement reads. "The university welcomes as full members of the university community all whose behavior meets university standards. Members of the university community can remain in good Honor Code standing if they conduct their lives in a manner consistent with gospel principles and the Honor Code."

The contract also forbids alcohol and premarital sex, so it's little surprise the campus of about 30,000 also ranked No. 1 on the list of "stone-cold sober" schools.

For this year's rankings, Princeton Review staff members surveyed about 136,000 students at 380 schools.

The survey includes 80 questions, with subject matter ranging from coursework to attitudes of fellow students.

Twitter: @anniebknox

More of BYU's Top 20 rankings:

No. 1 • Most religious students

No. 2 • Low marijuana use

No. 4 • Best-run colleges

No. 6 • Most conservative, politically right-leaning students

No. 8 • College-town relations

No. 11 • Students most engaged in community service

No. 19 • College library

No. 4 • Future Rotarians and Daughters of the American Revolution

Source: Princeton Review