>Xr</span><span class="p">(</span><span class="n">i</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">avrank</span>
<span class="w">            </span><span class="k">ENDDO</span>
<span class="k">            RETURN</span>
<span class="k">         ENDIF</span>
<span class="c">!</span>
<span class="c">!-----START POINT-----------------------------------------------------</span>
<span class="c">!</span>
<span class="c">!     FIRST SORT THE DAT