Show Out of stock products at the end in Woocommerce, without affecting Advanced Product Labels

We are using WooCommerce Advanced Product Labels plugin that adds a banner on products that are in stock. I tried using Show Out of stock products at the end in Woocommerce answer code suggested by DACrosby that shows Out of stock products at the end (still works on WordPress 6.6.1 with WooCommerce 9.2.3) But the code conflicts with the plugin, since the banners disappear when it's active. Has anyone got an idea on what part of the code might be doing that and how to fix it?

Comment (0)

You’ll be in good company