Magento - Move out of stock products to end

Hi. We’re using Magento 1.9.3.8 and Algolia extension 1.13.0. We need to move out of stock products to the end of the list. How can we do that?

Regards.