Added check for atomic positions ordering.