It is the duty of the criminal and circuit judges of this state, at the adjournment of their courts or earlier, if the number of persons convicted justify it, to make an order specifying the number of guards the sheriff shall have in conveying to the supreme court, or to the penitentiary, the person or persons convicted, in case the person so appointed for that purpose by the commissioner of correction fails to remove them as provided by law.