As far as I know, the first time the Qur'an was compiled into one volume was by Abu Bakr, during his term as Khalifah (Caliph).
My question is, how did they decide what order to put surahs in? For example, why did Surat Al-Falaq come before Surat Al-Nas? What caused them to decide the order?