rails promote table row to top of table on if statement
<p>So i have this table:</p>

<pre><code>&lt;% @extra_dates.each do |ed| %&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;%= ed.date %&gt;&lt;/td&gt;
    &lt;td&gt;&lt;%= ed.eventvenuename %&gt;&lt;/td&gt;
    &lt;td&gt;&lt;%= link_to "Buy Now", "/events/" + ed.permalink, class: "btn btn-info" %&gt;&lt;/td&gt;
    &lt;% if ed.weburl1 || ed.weburl2 %&gt;
      &lt;td&gt;
        &lt;label class="annlabel" id="label"&gt;Cheapest&lt;/label&gt;
      &lt;/td&gt;
    &lt;% end %&gt;
  &lt;/tr&gt;
&lt;% end %&gt;
</code></pre>

<p>Now if the cheapest label shows I want this to be on the top row of the table.</p>