  We discuss the scenario of two-step magnetic ordering in layered high
temperature superconductors after charge ordering. As the temperature
decreases, the transition from 3D Heisenberg spin behavior to 2D XY coupling of
the Cu spins occurs at Berezinskii-Kosterlitz-Thouless temperature in
dielectric stripes. Further temperature decreasing leads to the 3D spin glass
transition.
