Nothing in this article shall be so construed as to interfere with or prevent the county authorities from working or housing together all prisoners on public works as provided by law.