As Ryan says, ultraviolet radiation is more energetic than infrared. But “hotter” is a somewhat informal term. A photon of UV radiation has a lot more energy than a photon of IR, but the total energy has to take into account the number of photons as well.