On the magnetic ordering of R6Fe13X compounds