How to push top table rows to the bottom - HTML and JavaScript
<p>I want to push certain rows to bottom of table, how can it be achieved in plain JavaScript?</p>

<p>In the table below, I want to push the 1st and 2nd rows to bottom:</p>

<pre><code>&lt;table&gt;
    &lt;tr&gt;&lt;td&gt;ABCD&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;XYZ&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;adfs&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;asd&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;asdasd&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
</code></pre>
