WooCommerce Product Sorting Dropdown Demo
A WooCommerce product sorting dropdown gives shoppers a way to order matching catalog results. In this electronics demo, choose Brand and then pick a sort option to compare the remaining products by a relevant field such as price or rating.
Try this: Use the sort dropdown above the brand list and watch the product order change.
How this demo is configured
- Create a filter by Brand (product attribute pa_brand). Show as Checkboxes. Show the first 6 terms, with a More toggle.
- Inline sorting: on.
Showing 25–36 of 36 results
-
Add to cart
Samsung Galaxy S24 Ultra
$1,299.00 -
Sale
Add to cart
Google Pixel 8
Original price was: $699.00.$549.00Current price is: $549.00. -
Add to cart
Google Pixel 8a
$499.00 -
Add to cart
Microsoft Surface Laptop 7 (13.8")
$1,199.00 -
Add to cart
HP Spectre x360 14
$1,449.00 -
Sale
Read more
Acer Swift Go 14
Original price was: $849.00.$699.00Current price is: $699.00. -
Add to cart
iPhone 15
$799.00 -
Add to cart
MacBook Pro 14" (M3 Pro)
$1,999.00 -
Sale
Add to cart
Dell XPS 13 (9340)
Original price was: $1,199.00.$1,049.00Current price is: $1,049.00. -
Add to cart
Lenovo ThinkPad X1 Carbon Gen 12
$1,649.00 -
Sale
Add to cart
ASUS ROG Zephyrus G14 (2024)
Original price was: $1,599.00.$1,399.00Current price is: $1,399.00. -
Sale
Add to cart
MacBook Air 13" (M3)
Original price was: $1,099.00.$999.00Current price is: $999.00.
How the product sort dropdown works
The sort dropdown passes the selected order to the product query. Available choices include date, price, sales, rating, or title. The Sorting options (shown to shoppers) setting determines which orders appear in the menu.
When to offer product sorting
Use sorting when shoppers may want to arrange matching products by a relevant field. Price and rating are common choices in a store catalog; newest-first can help where recently added products matter.
Pick labels shoppers understand and make sure the chosen sort order matches the underlying product data. Custom-field sorting requires the appropriate key and numeric setting when values are numbers.
Add a sort dropdown to filters
- Edit the product Filter Set and enable Show sorting dropdown with filters.
- Choose a Default sort (if no sort widget) value.
- Review Sorting options (shown to shoppers) and add the choices your catalog supports.
- Save and open the page with the filter widget. Choose an option, then verify that product order changes.