puts wavelengths in correct order