Court orders three held in prison custody over robbery