Note that configurable and bundle products are composite and their quantity is 0. That is why sorting by quantity is not supported for them. The option ‘Use qty to determine if the product is `Out of Stock`’ doesn’t work for configurable and bundle product types as well for the same reason.
See more details on Improved Sorting page
Login and Registration Form