Spectral types are ordered from higher surface temperature to lower surface temperature. The order is: O, B, A, F, G, K, and M.