It is permitted to include [all the books of] the Torah, the Prophets, and the Holy Scriptures in a single scroll.
Four empty lines should be left between each book of the Torah, and three empty lines between each book of the Prophets. One should also leave three lines between each book of the twelve [minor] prophets, so that should one desire to cut, he may do so.
This is the order of the Prophets: Joshua, Judges, Samuel, Kings, Jeremiah, Ezekiel, Isaiah, the Twelve [Minor Prophets].
This is the order of the Holy Scriptures: Ruth, Psalms, Job, Proverbs, Ecclesiastes, the Song of Songs, Lamentations, Daniel, Esther, Ezra, Chronicles.