Show Out Of Stock Product's On Listings Page, After In Stock Items?

I want to keep all product's on the listings page, so people can use the notify when in stock option. Is there a way to set it so that it shows the out of stock items, only after it displays all of the in stock?

Unfortunately we failed to find such a module on marketplace