Display out of stock products at the end of the product list

Hi,

Is it possible for the product archive (query loop) to be based on the newest, but the non-existent products are at the bottom of the product list?

Thank you in advance