jQuery appentTo and reset/reorder position function?
<p>I am appending into a "div" several "img" tags, using appendTo() which seems to be working great. now what if I want to remove an image and reorder them? To make my self more clear, I am keeping the image divs in an array. When I delete an element from that array, I also want  the "visual" images to be reordered. 
So I have this:</p>

<pre><code>[img_1] [img_2] [img_3] -&gt; in a div
</code></pre>

<p>now if I delete "image div" 2 I want to get this:</p>

<pre><code>[img_1] [img_3] -&gt; in a div
</code></pre>

<p>and NOT this:</p>

<pre><code>[img_1]       [img_3] -&gt; in a div
</code></pre>
