title: How to create query from post value combined with repeater value
body: <p>I have problems with creating a query based on the repeater field (ACF-plugin Wordpress). I use pages with a specific template. Every page title stands for a continent. Every repeater field stands for a country.</p>
  
  <p>What I have so far:</p>
  
  <pre><code>$args = array(
      'post_type'  =&gt; 'page',
      'post_parent' =&gt; 0,
      'meta_query' =&gt; array(
          array(
              'key'   =&gt; '_wp_page_template', 
              'value' =&gt; 'page-landing.php'
          )
      )
  );
  $the_query = new WP_Query( $args );
  
  if ( $the_query-&gt;have_posts() ) :
      while ( $the_query-&gt;have_posts() ) : $the_query-&gt;the_post(); 
          if( have_rows('countries') ):
              while ( have_rows('countries') ) : the_row(); ?&gt;
                  &lt;li&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;" title=""&gt;&lt;?php the_sub_field('country'); ?&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;?php endwhile;
              else :
          endif; ?&gt;
  
          &lt;li&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;" title=""&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
  
      &lt;?php endwhile;
  endif;
  </code></pre>
  
  <p>the results:</p>
  
  <ul>
  <li>Gambia (repeater value from Africa)</li>
  <li>Zimbabwe (repeater value from Africa)</li>
  <li>Africa (page)</li>
  <li>Belgium (repeater value from Europe)</li>
  <li>Germany (repeater value from Europe)</li>
  <li>Netherlands (repeater value from Europe)</li>
  <li>Europe (page)</li>
  </ul>
  
  <p>How do I combine all those values alphabetically so I can create a permalink to the parent page, the continent?</p>