(CNN) - A Florida appeals court Wednesday struck down a state law barring gay men and lesbians from adoption on the basis of equal protection under law.

The Florida 3rd District Court of Appeal upheld a trial court ruling that Florida's explicit ban was unconstitutional, noting that the state's adoption law required officials to assess potential adoptive parents in "the best interests of the child."

"By the time of the trial below, the application of the statutory ban was contrary to both the professional judgment of the Department and the legislative directive to assure 'the best interest of the child' in 'every' adoption," wrote Judge Cindy S. Lederman in the 42-page ruling.