(a) No person who has been convicted of an offense that will require the person to register as a sexual offender pursuant to title 40, chapter 39, part 2, and who is being housed in a county or municipal jail or workhouse, shall be eligible for, nor shall such person be placed on, trusty status.
(b) Subsection (a) is applicable regardless of whether the person is:
(1) Sentenced to the department of correction but is serving the sentence in a county or municipal jail or workhouse pursuant to contract or is sentenced to confinement in a county or municipal jail or workhouse; or
(2) Sentenced to the department of correction but is being housed in a county or municipal jail or workhouse while awaiting transfer to the department.