Add rarity to table and fix scale sorting.