If a severance is granted, the defendants may agree upon the order in which they are to be tried, but if they fail to agree, the court shall direct the order of the trial.