original_string: public function getTopOrganizations()
      {
          try {
              $organizations = $this->db->fetchPairs('SELECT gor_id_organization, gor_name FROM gems__organizations WHERE gor_active=1 AND gor_has_login=1 AND (gor_accessible_by IS NULL OR gor_accessible_by = "::") ORDER BY gor_name');
          } catch (\Exception $e) {
              try {
                  // 1.4 fallback
                  $organizations = $this->db->fetchPairs('SELECT gor_id_organization, gor_name FROM gems__organizations WHERE gor_active=1 AND gor_accessible_by IS NULL ORDER BY gor_name');
              } catch (\Exception $e) {
                  $organizations = array();
              }
          }
  
          natsort($organizations);
  
          return $organizations;
      }
code: public function getTopOrganizations()
      {
          try {
              $organizations = $this->db->fetchPairs('SELECT gor_id_organization, gor_name FROM gems__organizations WHERE gor_active=1 AND gor_has_login=1 AND (gor_accessible_by IS NULL OR gor_accessible_by = "::") ORDER BY gor_name');
          } catch (\Exception $e) {
              try {
                  // 1.4 fallback
                  $organizations = $this->db->fetchPairs('SELECT gor_id_organization, gor_name FROM gems__organizations WHERE gor_active=1 AND gor_accessible_by IS NULL ORDER BY gor_name');
              } catch (\Exception $e) {
                  $organizations = array();
              }
          }
  
          natsort($organizations);
  
          return $organizations;
      }
code_tokens: public function getTopOrganizations ( ) { try { $ organizations = $ this -> db -> fetchPairs ( 'SELECT gor_id_organization, gor_name FROM gems__organizations WHERE gor_active=1 AND gor_has_login=1 AND (gor_accessible_by IS NULL OR gor_accessible_by = "::") ORDER BY gor_name' ) ; } catch ( \ Exception $ e ) { try { // 1.4 fallback $ organizations = $ this -> db -> fetchPairs ( 'SELECT gor_id_organization, gor_name FROM gems__organizations WHERE gor_active=1 AND gor_accessible_by IS NULL ORDER BY gor_name' ) ; } catch ( \ Exception $ e ) { $ organizations = array ( ) ; } } natsort ( $ organizations ) ; return $ organizations ; }
docstring: Return a list of organizations that are considered top-organizations, in this
  case organizations that are not accessible by others as they are considered
  the children of the top organizations. Feel free to modify to suit your
  needs.
  
  @return array
docstring_tokens: Return a list of organizations that are considered top - organizations in this case organizations that are not accessible by others as they are considered the children of the top organizations . Feel free to modify to suit your needs .