diff --git a/src/CivicrmMemberRoles.php b/src/CivicrmMemberRoles.php index c6786c7..2ab7ee4 100644 --- a/src/CivicrmMemberRoles.php +++ b/src/CivicrmMemberRoles.php @@ -123,7 +123,9 @@ class CivicrmMemberRoles { $types = []; $this->civicrm->initialize(); - $result = civicrm_api3('MembershipType', 'get'); + $result = civicrm_api3('MembershipType', 'get', [ + 'options' => ['limit' => 0, 'sort' => "name"] + ]); if (empty($result['values'])) { return $types; }