SACRAMENTO — Would-be judges would be asked about their gender identity and sexual orientation if legislation introduced Monday at the Capitol is enacted.

SB 182, sponsored by the gay rights group Equality California, would require the governor to collect the information from willing judicial applicants and appointees and to report the aggregate numbers annually.