Its all the doing of Guru Gobind Singh Ji. As Gurbani states:
Page 628, Line 2 -- Guru Arjan Dev
Dur kI bwxI AweI ]
The Bani of His Word emanated from the Primal Lord.
Dhur kee banee aa-ee.
Page 304, Line 16 -- Guru Ram Das
siqgur kI bwxI siq srUpu hY gurbwxI bxIAY ]
The Word of the True Guru`s Bani is the embodiment of Truth; through Gurbani, one becomes perfect.
satgur kee banee sat saroop hai gurbaanee banee-ai.
and as we have seen, Gurbani came from God, and so with the Hlpe of the Lord Guru Ji knew exactly where to put Gurbani, in what order, etc. Also, i have seen a chart which says what each Raag is supposed to mean/represent, ill show it to you, maybe the Raags and their meanings had to do something with the order as well.
1 [font=Georgia, Times New Roman, Times, serif]Soohi [/font] [font=Georgia, Times New Roman, Times, serif]Being away from home. The soul being away from the House of Lord and the joy of meeting the true ‘husband[/font] 2 [font=Georgia, Times New Roman, Times, serif]Bilaaval [/font] [font=Georgia, Times New Roman, Times, serif]beautification of soul, happiness. [/font] 3 [font=Georgia, Times New Roman, Times, serif]Gaund [/font] [font=Georgia, Times New Roman, Times, serif]Separation, union, surprise. [/font] 4 [font=Georgia, Times New Roman, Times, serif]Sri [/font] [font=Georgia, Times New Roman, Times, serif]Maya and detachment[/font] 5 [font=Georgia, Times New Roman, Times, serif]Maajh [/font] [font=Georgia, Times New Roman, Times, serif]yearning to merge with Lord, giving up of negative values. [/font] 6 [font=Georgia, Times New Roman, Times, serif]Gauri [/font] [font=Georgia, Times New Roman, Times, serif]Principles, serious, thoughtfulness, composed [/font] 7 [font=Georgia, Times New Roman, Times, serif]Aasa [/font] [font=Georgia, Times New Roman, Times, serif]Hope [/font] 8 [font=Georgia, Times New Roman, Times, serif]Gujri [/font] [font=Georgia, Times New Roman, Times, serif]Prayer (Paath)[/font] 9 [font=Georgia, Times New Roman, Times, serif]Devgandhari [/font] [font=Georgia, Times New Roman, Times, serif]Merging with spouse, self - realization [/font] 10 [font=Georgia, Times New Roman, Times, serif]Bihaagra [/font] [font=Georgia, Times New Roman, Times, serif]Yearning due to separation of soul and happiness due to meeting the Lord. [/font] 11 [font=Georgia, Times New Roman, Times, serif]Sorath [/font] [font=Georgia, Times New Roman, Times, serif]Merits of God[/font] 12 [font=Georgia, Times New Roman, Times, serif]Dhanasari [/font] [font=Georgia, Times New Roman, Times, serif]Mixed theme[/font] 13 [font=Georgia, Times New Roman, Times, serif]Jaitsree [/font] [font=Georgia, Times New Roman, Times, serif]Stability[/font] 14 [font=Georgia, Times New Roman, Times, serif]Todi [/font] [font=Georgia, Times New Roman, Times, serif]Maya, separation [/font] 15 [font=Georgia, Times New Roman, Times, serif]Bairagi [/font] [font=Georgia, Times New Roman, Times, serif]motivation to sing praises of Lord [/font] 16 [font=Georgia, Times New Roman, Times, serif]Tilang [/font] [font=Georgia, Times New Roman, Times, serif]Sadness, beautification. [/font] 17 [font=Georgia, Times New Roman, Times, serif]Raamkali [/font] [font=Georgia, Times New Roman, Times, serif]To give up the life of a wandering Jogi. [/font] 18 [font=Georgia, Times New Roman, Times, serif]Nat Narayan [/font] [font=Georgia, Times New Roman, Times, serif]Joy of meeting the Lord [/font] 19 [font=Georgia, Times New Roman, Times, serif]Maali Gaura [/font] [font=Georgia, Times New Roman, Times, serif]Happiness [/font] 20 [font=Georgia, Times New Roman, Times, serif]Maaru [/font] [font=Georgia, Times New Roman, Times, serif]Bravery, profound philosophy. [/font] 21 [font=Georgia, Times New Roman, Times, serif]Tukhari [/font] [font=Georgia, Times New Roman, Times, serif]Separation and union with Lord [/font] 22 [font=Georgia, Times New Roman, Times, serif]Kedara [/font] [font=Georgia, Times New Roman, Times, serif]Love [/font] 23 [font=Georgia, Times New Roman, Times, serif]Bhairav [/font] [font=Georgia, Times New Roman, Times, serif]Man’s state of hell [/font] 24 [font=Georgia, Times New Roman, Times, serif]Basant [/font] [font=Georgia, Times New Roman, Times, serif]Happiness [/font] 25 [font=Georgia, Times New Roman, Times, serif]Sarang [/font] [font=Georgia, Times New Roman, Times, serif]Thirst to meet God[/font] 26 [font=Georgia, Times New Roman, Times, serif]Malaar [/font] [font=Georgia, Times New Roman, Times, serif]State of separated and united soul [/font] 27 [font=Georgia, Times New Roman, Times, serif]Jaijawanti [/font] [font=Georgia, Times New Roman, Times, serif]Vairaag (Detachment (from earthly things) ) [/font] 28 [font=Georgia, Times New Roman, Times, serif]Kalyaan [/font] [font=Georgia, Times New Roman, Times, serif]Bhakti (Prayer) Ras [/font] 29 [font=Georgia, Times New Roman, Times, serif]Vadhans [/font] [font=Georgia, Times New Roman, Times, serif]Vairaag (Detachment (from earthly things) ) [/font] 30 [font=Georgia, Times New Roman, Times, serif]Prabhati[/font] [font=Georgia, Times New Roman, Times, serif]Bhakti (Prayer that involves you totally focused on God) [/font] 31 [font=Georgia, Times New Roman, Times, serif]Kaanra[/font] [font=Georgia, Times New Roman, Times, serif]Bhakti (Prayer that involves you totally focused on God) [/font] [font=Georgia, Times New Roman, Times, serif] (with thanks to info-sikh.com)[/font]
Hope this has helped. Forgive me if ive said something wrong. WaheGuru!