Arrangement Of Surahs
The consensus of the community of Sahaba confirms that it came from the Prophet and was transmitted to the next generations as it was. It is the same as we do now. We, with consensus, transmit it to others. The companions did the same.