How to sort this jQuery element to this
<p>I want to make id="a" element div to be the second div in the div.b element. 
And I want to how to make id="a" element div to be the last div in the div.b element. </p>

<p>Here is the code:</p>

<pre><code>&lt;div class='b'&gt;
    &lt;div&gt;a&lt;/div&gt;
    &lt;div&gt;a&lt;/div&gt;
    &lt;div id="a"&gt;I want to moderate this div &lt;/div&gt;
    &lt;div&gt;a&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>The result I want to achieve is:</p>

<pre><code>&lt;div class='b'&gt;
    &lt;div&gt;a&lt;/div&gt;
    &lt;div id="a"&gt;I want to moderate this div&lt;/div&gt;
    &lt;div&gt;a&lt;/div&gt;
    &lt;div&gt;a&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>And:</p>

<pre><code>&lt;div class='b'&gt;
    &lt;div&gt;a&lt;/div&gt;
    &lt;div&gt;a&lt;/div&gt;
    &lt;div&gt;a&lt;/div&gt;
    &lt;div id="a"&gt;I want to moderate this div&lt;/div&gt;
&lt;/div&gt;
</code></pre>
