Fix issue where rarity doesn't sort properly since it is treated as a string
Fix issue where rarity doesn't sort properly since it is treated as a string