Static lattice energy calculations of mixing and ordering