Order Parameter Functional Method in the Theory of Atomic Ordering