The jail or jails in each county shall be used or be available for the detention of every person who, within the same county, is charged with any crime or properly committed for trial or for the imprisonment of every person who in conformity with sentence, upon conviction of an offense, may have been sentenced, and for the safekeeping of every person who shall be committed by competent authority according to law.
NMS § 33-3-3