As the core of such a gas cloud contracts under the pull of gravity, its entropy decreases, but in the process it releases heat that causes the entropy of the surroundings to increase. A local region of order is created within an environment that undergoes a more than compensating surge in disorder.