Putting out of stock products at the end of the collection
Is there a way to make sure out of stock products are located at the end of the collection when a customer browses a category? Not just at the end of each page, but at the end of the category or collection. I saw that this was possible with Shopify with a little bit of code: https://community.shopify.com/c/Shopify-Discussion/How-do-I-sort-quot-Out-of-Stock-quot-products-to-the-end-of-a/td-p/222020/page/2
Could you adapt this code or provide one for Lightspeed eCom users?
Note: as you know there is no built-in way to filter out out-of-stock products on the eCom front end, and coding it would take thousands of dollars according to quotes we received. The above may do the trick until you build the Filter in (if ever), thanks.