Sign-reversal of the in-plane resistivity anisotropy in hole-doped iron pnictides