Scale your business with our modular plugins.
Home » Blog » How to Sort WooCommerce Products In Simple Ways?

How to Sort WooCommerce Products In Simple Ways?

sort woocommerce products
October 13, 2025||By Jane F

Changing the product order allows users to find results according to their preferences easily and is an excellent way to improve product visibility and conversions. In this article, we will show you different methods to reorder and sort WooCommerce products.

Why Order Products in WooCommerce?

Depending on your store, you can have hundreds or thousands of products. If that’s the case and you don’t have a robust search system, it may be difficult for your customers to find the items they desire. This can make it harder for them to find what they’re looking for and affect your revenue.

To address this issue, you can offer various ordering features. By adding sorting options (or tweaking the default ones), you can improve the overall shopping experience in your store. For example, you can enable your customers to quickly obtain results based on average sales, product popularity, or even product prices.

Having multiple sorting options can help shoppers find the desired product faster and more efficiently. As a result, sorting products can be very beneficial to your eCommerce store.

Now that we have a better understanding of why having options to reorder products can benefit your store, let’s see how to do it properly.

How to Sort WooCommerce Products

There are three primary methods to order WooCommerce products:

  1. Using the WordPress Customizer
    1. Using the Block Editor (Gutenberg)
  2. With a WordPress plugin
  3. Through custom snippet (programmatically)

We will examine all three methods below, so you can choose the preferred way to complete the task. 

Before we begin, ensure that you have correctly set up WooCommerce on your website, following all steps to ensure that these methods work smoothly.

1) Sort WooCommerce Products using the WordPress Customizer

Changing the default sorting option is one of the easiest ways to order products in WooCommerce. You can find this option on the shop page or any page of your store with a product catalog.

default sorting label sort woocommerce products

You can edit the default options just by using the WordPress customizer included in WooCommerce.

Go to Appearance > Customize to open the theme customizer and select WooCommerce.

woocommerce customizer

Then, select Product Catalog and you will see the default WooCommerce product sorting options for the shop page. 

woocommerce default sorting

When you click on it, a drop-down menu will appear showing you the six default product sorting options.

  • Default
  • Popularity (sales)
  • Average rating
  • Recent
  • Price (ascending)
  • Price (descending)
sorting options sort woocommerce products

Select your preferred default option and finally publish the saved changes.

1.1) Sort WooCommerce Products with the Block Editor (Gutenberg)

If you’re using Gunteberg and want to change the order of your products, you can use the Blocks editor. 

From the Blocks tab, select the Hand-Picked Products block that will allow you to change the order of your WooCommerce products.

sort woocommerce products

Drag it and select the products you want to display from the list. Please note that the order in which you add products will determine the order in which they are displayed. Changing the order later involves removing the products and starting again, so choose the order of the products carefully at this step. 

Once you’re happy with your selection, press Done.

That’s it! This is how you can modify the WooCommerce product order through the WordPress dashboard. The main advantage of this method is that it doesn’t require any plugins, technical knowledge, or custom snippets.

However, there are some disadvantages too. The default sorting option is minimal and may be very limited in some cases.

For more options, consider the following methods.

2) Order WooCommerce Products with a Plugin

Another alternative to order WooCommerce products is to use a dedicated sorting plugin. If that’s your case, check out Rearrange Woocommerce Products or WooCommerce Extra Product Sorting Options. They are both excellent plugins to sort products in your online store. 

For this tutorial, we will be using WooCommerce Extra Product Sorting Options. The first thing you need to do is install and activate the plugin on your site.

install WooCommerce Extra Product Sorting Options

Once you have activated the plugin, go to Appearance > Customize from your WordPress dashboard and select the WooCommerce option. Now, select the Product Catalog section and you will get some additional sorting options.

sort woocommerce products - additional sorting

As you can see, the additional options are:

  • Editing the default sorting label
  • Adding new product sorting
  • Removing existing product sorting

By default, WooCommerce displays the “Default Sorting” label when a visitor visits your shop archive. With this plugin, you can rename it from the customizer itself if needed. Enter the new default sorting label you want for the product catalog in the textbox.

new sorting label sort woocommerce products

You will be able to see the preview on the right side of your screen instantly. The changes will be applied to the front end after you publish the saved changes.

default sorting rebranded

Apart from changing the label, you can also add or remove product sorting options.

To add product sorting options, simply select the options you would like to provide to your customers.

add new sorting option sort woocommerce products

Once you select the options, they will be displayed in the preview automatically.

new sorting options added

Similarly, you can remove sorting options using the plugin. To remove them, simply select the options you want to remove from your website. 

remove product sorting sort woocommerce products

If you look at the preview, you will be able to see that the additional sorting options are now shown on the dropdown menu for sorting.

default options removed

Again, don’t forget to publish it after you have made all the necessary changes.

That’s it! You can now use a dedicated WordPress plugin for sorting the WooCommerce products.

3) Sort WooCommerce Products Programmatically

If you need the most advanced method, the programmatic approach can be the best fit for you. You can modify the sorting option just by placing a simple PHP snippet in your site-specific plugin or the theme’s functions.php file.

For this, you can use a dedicated plugin like Code Snippets for adding the custom codes to your WooCommerce site or create a child theme. If you need help, you can even use one of the child theme plugins for WordPress to create one. But make sure that you back up your WordPress website before we start, since we will be modifying some core files of your website.

However, we will go with Code Snippets in this demonstration. So first, install and activate this plugin on your site.

install code snippets

After activation, you will see the plugin’s settings on the left-hand side of your screen. Just go to Snippets > All Snippets and click Add New to add a new snippet.

add new snippet

Now, copy the following code and paste it inside the snippet field. Also, don’t forget to name the snippet so that you can identify it for future updates.

add_filter('woocommerce_default_catalog_orderby', 'quadlayers_default_catalog_orderby');

function quadlayers_default_catalog_orderby( $sort_by ) {
return 'date';
}
woocommerce sorting script sort woocommerce products

If you look at the code, we have added date as the primary sorting option, but you can modify it according to your needs. The available options are:

  • menu_order – the default one
  • popularity – according to the sales
  • rating – by customer rating
  • date – according to the published date
  • price – price low to high sorting
  • price-desc – price high to low
  • rand – random products every time

For example, if you want to sort the products according to customer ratings, you should modify the code like this:

add_filter('woocommerce_default_catalog_orderby', 'quadlayers_default_catalog_orderby');

function quadlayers_default_catalog_orderby( $sort_by ) {
return 'rating';
}

Once you have modified the code, publish the snippet and check your shop page. You will see the new sorting option by default. In this case, it’s sorted with average rating.

sort by rating

Order Products from the Products List

We’ve already established that you can sort WooCommerce products by default from the WordPress Customizer. However, you can also reorder individual products manually using the WooCommerce plugin itself. The products can even be sorted in a random order as default sorting for the customers.

The best part is that you don’t even need to use additional plugins or custom codes for the task. Everything can be reordered just from the dashboard.

So, the first thing you need to do is go to Products > All Products from your WordPress dashboard. You will be able to see it on the left-hand side of your screen.

sort woocommerce products - woocommerce products

On the next page, you can see all the published products. If you take a close look at the page, you will also see an option called Sorting.

sort woocommerce products - woocommerce sorting

If you select that option, you will be redirected to the product sorting wizard.

By default, WooCommerce sorts products according to their published date. But through this page, you can easily rearrange using drag and drop. 

sort woocommerce products - woocommerce default sorting

You can easily drag products and drop them in the desired position, as shown above. Once you have done that, check the product archive page from the front-end.

products sorted

This way, you can sort WooCommerce products manually in any order without any additional plugins or codes.

Reorder Specific Products 

When you apply some sorting option globally on your WooCommerce installation, it will reflect site-wide. However, in some ocassions you may only want to reorder specific products.

Let’s say you may need to display a custom product on top of the archive or shop page. The good news is that you can do that using the product editor in WooCommerce.

First, open the product editing wizard, go to Products > All Products and click on Edit for the product that you want to reorder.

edit product sort woocommerce products

Then, you will be redirected to the product editor page. Scroll down under the product data and go to the Advanced tab.

advanced tab

WooCommerce will automatically choose the menu order according to your published product queue by default. So, when you have published your 10th product inside the shop, the menu order will be 10.

After publishing your 25th product, WooCommerce will set its menu order as 25, and so on. But from the Advanced tab, you can modify it. And that’s what we are going to do to reorder the products.

To bring the specific product to the top of the archive page, use 0 or a minus (-) value. For example, you can use 0 or -1 to bring the product to the top page. In this demo, we will make the menu order as -1. Finally, update the product once you have modified the value.

new menu order

After that, check your archive page from the front end.

menu order changed

As you can see, we have quickly brought the specific product to the top of the page. To put a different product first, you’d need to a number smaller than -1 like -2 for example.

You can also use the previous method from the product lists, but this is a more direct approach, as we can place the product in a specific position through the menu order.

Sort Products of a Specific Category

To keep the products handy and accessible to everyone, you can also use categories to sort WooCommerce products. And with a simple snippet, you can add a custom sorting feature to a category archive. This section will tell you more about it.

Ensure that you have sufficient product categories in your WooCommerce store. However, on our demo website, we have only an uncategorized category and six products assigned to it.

product category

As you can see, the slug is uncategorized. We will be using this slug later in the snippet. Next, go to the Code Snippets plugin and create a new snippet. Once you have done that, copy and paste this code from below to your website.

add_filter('woocommerce_default_catalog_orderby', 'quadlayers_catalog_orderby_for_category');

function quadlayers_catalog_orderby_for_category( $sort_by ) {
if( !is_product_category('uncategorized') ) {
return $sort_by; // modify uncategorized category archive sorting
}
return 'date';
}
category sorting

If you examine the code, you can see that we have selected the “uncategorized” slug within the code and applied the date filter for sorting. Before publishing the code on your website, replace it with your category slug and sort option.

Once you have done that, publish the snippet.

When you visit the specific category archive, the new sort option will be displayed by default. In our case, the products are automatically sorted by the date they were last updated.

sort by latest filtering

That’s it! This is how you can sort products of a specific category.

Sort WooCommerce Products Alphabetically

If you have a lot of products, sorting them alphabetically can be a good choice to make your customers’ lives easier. In this section, we will show you how to sort WooCommerce products alphabetically with a simple snippet.

The code you need to use is:

function quadlayers_alphabetical_shop_ordering( $sort_args ) {
$orderby_value = isset( $_GET['orderby'] ) ? woocommerce_clean( $_GET['orderby'] ) : apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby' ) );
if ( 'alphabetical' == $orderby_value ) {
$sort_args['orderby'] = 'title';
$sort_args['order'] = 'asc';
$sort_args['meta_key'] = '';
}
return $sort_args;
}
add_filter( 'woocommerce_get_catalog_ordering_args', 'quadlayers_alphabetical_shop_ordering' );

Just add this to the Code Snippet plugin or the functions.php file on your website.

alphabetical sorting

After pasting, publish it. Then, create a label so that the visitors can use the sorting option. To do that, you need the following code:

function quadlayers_custom_wc_catalog_orderby( $sortby ) {
$sortby['alphabetical'] = 'Sort by Name: Alphabetical';
return $sortby;
}
add_filter( 'woocommerce_default_catalog_orderby_options', 'quadlayers_custom_wc_catalog_orderby' );
add_filter( 'woocommerce_catalog_orderby', 'quadlayers_custom_wc_catalog_orderby' );

Create a new snippet once more in the plugin and paste this code there.

alphabetical order sorting

After adding the new snippet, publish it. Now, go to your shop archive and check the dropdown menu for sorting.

sort by alphabetical order

You will see that the WooCommerce products are sorted in alphabetical order.

If you need a no-code solution, you can also use this plugin.

Best WooCommerce Product Sorting Plugins

Now, let’s see some popular WooCommerce plugins which can help you sort WooCommerce products with ease.

1. WooCommerce Extra Product Sorting Options

WooCommerce Extra Product Sorting Options

WooCommerce Extra Product Sorting Options is a lightweight plugin that enhances the default sorting dropdown on your shop and archive pages. It allows you to add new sorting criteria like “Sort by newest,” “Sort by on sale,” or “Sort by SKU.”

You can also remove existing options or change their labels to better align with your brand. The plugin works out of the box and integrates seamlessly with most WooCommerce themes.

If you want more control over the order in which sorting choices appear or need to simplify the dropdown for customers, this plugin makes it easy to do so. It’s ideal for store owners who want a clean and more relevant sorting experience without needing to touch any code.

Whether you’re running a small shop or a large store with thousands of products, WooCommerce Extra Product Sorting Options offers a simple yet effective way to improve product visibility and user experience.

2. WooCommerce Product Table by Barn2

WooCommerce Product Table by Barn2

WooCommerce Product Table by Barn2 is a premium plugin that replaces the standard WooCommerce layout with a fast, responsive table view.

Customers can easily sort products by name, price, SKU, attributes, or custom fields. It also supports instant search and filter options, creating a more efficient shopping experience.

This plugin is handy for stores with extensive catalogs, wholesale shops, or B2B sites where customers need to browse and purchase products efficiently. You can enable sorting on any column and display multiple product properties in one compact table layout.

With deep customization options, you can control which columns appear, what sorting options are enabled, and even include quantity selectors or add to cart buttons in the table.

WooCommerce Product Table is highly flexible and works well with most themes and plugins, offering a better alternative to traditional product grids.

Frequently Asked Questions

Now, let’s examine some frequently asked questions about this topic.

How does WooCommerce sort products by default?

By default, WooCommerce uses the “Default sorting” option, which typically shows products by menu order and then by name. This order can vary based on theme and customizations.

Can I change the default sorting order in WooCommerce?

Yes, you can change the default sorting from WooCommerce → Settings → Products → Display or by modifying your theme’s functions or templates.

How do I sort products by price, popularity, or rating?

WooCommerce includes built-in sorting options like “Sort by price,” “Sort by popularity,” and “Sort by average rating” that users can select from the dropdown on the shop page.

Can I manually reorder products in WooCommerce?

Yes, you can manually change product positions using menu order from the WordPress admin by going to Products → All Products → Sorting.

How can I remove or customize sorting options in the dropdown?

You can remove or customize sorting options using a filter like woocommerce_catalog_orderby in your theme’s functions.php.

Is it possible to sort products by custom fields or attributes?

Yes, but it requires custom coding or the use of plugins that support sorting by custom fields like size, color, or brand.

Which plugin can help with advanced product sorting in WooCommerce?

Plugins like Product Sort and Display for WooCommerce or WooCommerce Extra Product Sorting Options can extend the default sorting features without code.

Does product sorting affect SEO or product visibility?

While sorting doesn’t directly affect SEO, improving sort order can enhance user experience and reduce bounce rate, which may positively impact overall rankings and conversions.

Conclusion

While handling a WooCommerce installation, you have to try multiple ways to boost your conversion rates. Sorting your products can be a great way to enhance the customer experience.

As you can see above, all three methods (from the WooCommerce menu, plugin, and coding) are straightforward and require no technical knowledge. 

Additionally, we have added a few more options to reorder products from the product list or order specific products. Similarly, we have also included additional product sorting options for you, including specific categories and alphabetical order.

We hope that you can now sort the products in your store without any issues.

How will you modify the product sorting option?

Let us know in the comments below.

Log into your account
Forgot your password?