Magnetism and charge order in the ladder compound