As long as the character is approved to take all three classes (ranger, wizard, and AA), and as long as you have at least five levels in all three by the time the character reaches 20th level, then it doesn't matter what class you take on a given level.