I want to sort both simple and variable WooCommerce products by price in a Toolset View, but sorting appears random—ascending order works partially and descending fails when using a custom shortcode for product prices.
Solution:
Use the built-in [wpv-woo-product-price] shortcode instead of a custom one. Toolset sorting relies on WooCommerce’s internal price values, which consider the highest variable product price. With the default shortcode, sorting works correctly in both directions.