The state's Attorney-General has directly intervened in a bid to address growing community concern over comments made by a Sydney judge who has compared incest and paedophilia to homosexuality.

Attorney-General Brad Hazard has referred District Court Judge Garry Neilson to the NSW Judidical Commisison, while Fairfax Media can reveal that a senior public official has referred the state's judiciary to the royal commission into child sexual abuse.

"Extremely concerned": Attorney-General Brad Hazzard. Credit:Dominic Lorrimer

Mr Hazard said he was acting on behalf of the community and that he had also written to the Chief Judge of the Distrcit Court, Reg Blanch, requesting that Judge Neilson not sit on any criminal trials under the commission had examined his complaint.

Cheif Judge Blanch late Friday said Judge Neilson would not sit on criminal matters until the issue had been dealt with.