Hi!, I was wondering if sacrificing a weapon also helps with getting items with higher rarity???

For example: Will sacrificing a rare lvl 15 weapon help with getting an epic or legendary weapon that is lvl 10-15?
or will it only help me with getting a weapon between lvl 10-15, which can be normal,rare,epic, or legendary?