I have a list that includes buttons rendering different colors. Some of the buttons have a "discontinued" class, and I need to move those buttons to the end of the list. Below is the HTML markup for the list:
<ul>
<li>
<span class="koh-product-variant" data-koh-color="Ice Grey">
<button class="koh-product-color discontinued" disabled="disabled" data-hasqtip="swatch00">
<img src="https://kohler.scene7.com/is/image/PAWEB/swatch_95?$SwatchSS$" width="40" height="40" alt=""><span class="label">Ice Grey</span>
</button>
</span>
</li>
<li>
<span class="koh-product-variant" data-koh-color="Almond">
<button class="koh-product-color discontinued" disabled="disabled" data-hasqtip="swatch01">
<img src="https://kohler.scene7.com/is/image/PAWEB/swatch_47?$SwatchSS$" width="40" height="40" alt=""><span class="label">Almond</span>
</button>
</span>
</li>
<li>
<span class="koh-product-variant koh-selected-variant" data-koh-color="White">
<button class="koh-product-color" data-hasqtip="swatch02">
<img src="https://kohler.scene7.com/is/image/PAWEB/swatch_0?$SwatchSS$" width="40" height="40" alt=""><span class="label">White</span>
</button>
</span>
</li>
<li>
<span class="koh-product-variant" data-koh-color="Biscuit">
<button class="koh-product-color" data-hasqtip="swatch03">
<img src="https://kohler.scene7.com/is/image/PAWEB/swatch_96?$SwatchSS$" width="40" height="40" alt=""><span class="label">Biscuit</span>
</button>
</span>
</li>
</ul>
I need assistance with moving the li elements containing buttons with the "discontinued" class to the end of the ul. Any help would be greatly appreciated.