-
(a) If the defendant is in actual custody, the court or judge granting the order of removal shall also make an order commanding the sheriff to remove the body of the defendant to the jail of the county into which the cause is to be removed and deliver the defendant to the keeper of the jail, together with the warrant or process by virtue of which he or she is imprisoned and held.
-
(b) The sheriff shall obey the order without unnecessary delay and shall endorse on the commitment process or order of the court by which the prisoner is held in his or her custody the reason of the change of custody. The sheriff shall deliver the warrant with the prisoner to the keeper of the jail of the proper county, who shall give the sheriff a receipt therefor, and take charge of and keep the prisoner in the same manner as if he or she had been originally committed to the jail.