The order in which the rays in the electromagnetic spectrum are arranged is:-
Infrared rays - X rays - Radiowaves - Microwaves - Gamma rays - UV rays - Visible