Self-organization in a diversity induced thermodynamics