I am trying to display the out-of-stock products at the end of the results. This seems to be a fairly common request by woocommerce users but I cannot seem to get any of the solutions to work.
Here is a good thread with several options (the more recent are recommended as its a kind of an old thread):