The sheriff of Hinds County shall receive and safely keep, according to the order of the supreme court, all persons ordered into his custody. The sheriff shall be paid his fees therefor out of the treasury of the proper county, or out of the state appropriation for the judicial department, when certified by the supreme court.