Now, this guy makes sense because one S comes before two S and two S comes before two P and two P comes before three S, and three S comes before three P. In other words, this goes from lowest energy level to highest energy level.