California must consider earlier parole for potentially thousands of sex offenders, maybe even those convicted of pimping children, a state judge said Friday.

Sacramento County Superior Court Judge Allen Sumner preliminarily ordered prison officials to rewrite part of the regulations for Proposition 57. The 2016 ballot measure allows consideration of earlier parole for most state prison inmates, but Gov. Jerry Brown promised voters all sex offenders would be excluded.