Make in-stock Website Items appear first by default in ERPNext Webshop

Currently, ERPNext webshop lists products without considering stock availability.
How Can I make in-stock items appear first by default (sorted by actual_qty DESC) in the product listing.