Dynamically arranging divs using jQuery
<p>I have the following structure:</p>

<pre><code>&lt;div id="container"&gt;
&lt;div id="someid1" style="float:right"&gt;&lt;/div&gt;
&lt;div id="someid2" style="float:right"&gt;&lt;/div&gt;
&lt;div id="someid3" style="float:right"&gt;&lt;/div&gt;
&lt;div id="someid4" style="float:right"&gt;&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>Now someid is acually a unique id for that div. Now i receive an array which has a different order say someid 3,2,1,4, then how do i move these divs around to match the new order using jQuery?</p>

<p>Thankyou very much for your time.</p>
