A comparative study on the magnetic order in hole- and electron-doped high-Tc cuprates