SAN FRANCISCO — The U.S. Court of Appeals for the Ninth Circuit took the rare step Wednesday of both reversing a district court judgment and reassigning the case to a different judge because of the original judge’s “unfortunate dismissive attitude” toward the litigants.

Making the decision even more rare is that one of the three judges on the Ninth Circuit panel thought the district judge in question — John Mendez of Sacramento — got the case right.