Thermodynamics · Entropy
A gas can get hotter and still lose entropy. Two terms, one for temperature and one for pressure, settle which way it goes.