title: order a number of div's dependant on a certain php variable in each div
body: <p>I have a div called 'teams', which contians a number of div's with team members (as below).</p>
  
  <p>Each team member needs to be ordered correctly using the $memberSequence.</p>
  
  <pre><code>&lt;div class="teams"&gt;
     &lt;div class="team-member"&gt;
        &lt;?php echo $memberSequence; ?&gt;
        &lt;p class="name"&gt;&lt;strong&gt;&lt;?= $nameID ?&gt;&lt;/strong&gt;&lt;/p&gt;
        &lt;p class="title"&gt;&lt;?= $positionID ?&gt;&lt;/p&gt;
        &lt;p class="tel"&gt;Dir: &lt;?= $telephoneID ?&gt;&lt;/p&gt;
     &lt;/div&gt;
     &lt;div class="team-member"&gt;
        &lt;?php echo $memberSequence; ?&gt;
        &lt;p class="name"&gt;&lt;strong&gt;&lt;?= $nameID ?&gt;&lt;/strong&gt;&lt;/p&gt;
        &lt;p class="title"&gt;&lt;?= $positionID ?&gt;&lt;/p&gt;
        &lt;p class="tel"&gt;Dir: &lt;?= $telephoneID ?&gt;&lt;/p&gt;
     &lt;/div&gt;
     &lt;div class="team-member"&gt;
        &lt;?php echo $memberSequence; ?&gt;
        &lt;p class="name"&gt;&lt;strong&gt;&lt;?= $nameID ?&gt;&lt;/strong&gt;&lt;/p&gt;
        &lt;p class="title"&gt;&lt;?= $positionID ?&gt;&lt;/p&gt;
        &lt;p class="tel"&gt;Dir: &lt;?= $telephoneID ?&gt;&lt;/p&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How would I order the above team members, dependant on the $memberSequence (if this variable contained for example 1 or 2 or 3).</p>
  
  <p>I am pulling in $memberSequence using the following:</p>
  
  <pre><code>$memberSequence = fieldattach::getValue($this-&gt;item-&gt;id, 22, false);
  </code></pre>