Fix for card cost sorting.