A compound-energy model of ordering in a phase with sites of different coordination numbers