Fixed sorting in card definitions file