Fix fatal error on sorting with cards with a NaN mana cost, update graph colors