(a)unconvicted criminal prisoners who have been committed for trial by the Court of Sessions shall be kept separate from unconvicted criminal prisoners who have not been so committed and those who have been previously convicted shall be kept separate from those who have not been previously convicted;