Sorting category products not working

Try changing the order from the Appearance -> Customize section (woocommerce).

Ref: https://www.endocreative.com/customize-product-sorting-woocommerce/