Thermostat question

I have a dumb thermostat question. When installing a new thermostat do you put the thermostat in first, then the gasket, then the housing or is it gasket first then the thermostat?

Thanks