Localization and long-range order in magnetic chains.