Magnetism in Ce2Rh(In,Sn)8 heavy-fermion compound