Footnote d Psalm 45 also gives some details of the order of events. First the King fights the war, and then the marriage takes place.