class="sd">    &gt;&gt;&gt; g1 = latitude*depth</span>
<span class="sd">    &gt;&gt;&gt; g1.rearrange( (1,0) ) </span>
<span class="sd">    (depth, latitude)</span>

<span class="sd">    See also Gr.perm method    </span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">__class__</span><span class="p">((</span><span class="bp">self</span><span class="p">[</span><span class="n">i</span><span class="p">]</span>