Judges to order criminals to attend sentencing hearings