THERMODYNAMICS OF OXYGEN ORDERING IN YBa2Cu3Oz