Judges must listen to community on sentencing, says Daniel Andrews