Fix for sorts not saving to default properly for directive types