Origins of quasicrystal ordering