Title: Bug in sorting categoriesq
Last modified: April 24, 2019

---

# Bug in sorting categoriesq

 *  Resolved [Incredible Escape Rooms](https://wordpress.org/support/users/resolvedhosting/)
 * (@resolvedhosting)
 * [7 years ago](https://wordpress.org/support/topic/bug-in-sorting-categoriesq/)
 * We have a number of clients we built Woocommerce sites with. With the current
   version of Woocommerce (3.6.1), on every site I have checked we are finding a
   bug.
 * Go to Products > Categories. Then try to sort the categories by the number of
   products in each category and it doesn’t work. When clicking it, the categories
   do resort but not in either ascending or descending order.
 * I tested if this happened with post categories but that functions as expected
   still so it seems to be Woocommerce specific.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [7 years ago](https://wordpress.org/support/topic/bug-in-sorting-categoriesq/#post-11465277)
 * Hey there!
 * It sounds like the Customizer > WooCommerce > Product Catalog settings are set
   to show categories rather than products:
 * ⌊Customizer⌉⌊Customizer⌉
    Link to image: [https://cld.wthms.co/ScSrMY](https://cld.wthms.co/ScSrMY)
 * Once I’ve set the customizer to show categories and take a look at both the shop
   and a sub-category, neither show a sort option:
 * ⌊Categories⌉⌊Categories⌉
    Link to image: [https://cld.wthms.co/eopbYS](https://cld.wthms.co/eopbYS)
 * Can you tell me more about how one of these sites is set up, and share a URL 
   so that I can compare?
 *  Thread Starter [Incredible Escape Rooms](https://wordpress.org/support/users/resolvedhosting/)
 * (@resolvedhosting)
 * [7 years ago](https://wordpress.org/support/topic/bug-in-sorting-categoriesq/#post-11467347)
 * I was referring to the admin area. Under products > categories
 * When you are in there, you can normally sort product categories by different 
   columns. One of them is by the number of products in each product category. But
   with 3.6.1 it doesn’t work. Sorting the same way by post categories does work
   though so that’s why I think it’s a Woocommerce bug.
 * We use this feature to delete empty product categories that are sometimes created
   during imports. We have a site we get products from that for some reason when
   we export products from it, they include product categories that don’t have any
   products, so we go to products > categories in admin and sort by number of products
   so we can easily delete the empty categories.
    -  This reply was modified 7 years ago by [Incredible Escape Rooms](https://wordpress.org/support/users/resolvedhosting/).
 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [7 years ago](https://wordpress.org/support/topic/bug-in-sorting-categoriesq/#post-11469105)
 * Thanks for clarifying!
 * > When you are in there, you can normally sort product categories by different
   > columns. One of them is by the number of products in each product category.
 * I checked through the options in the Products section, but I’m not seeing an 
   option to sort by the total products in each category:
 * ⌊Product filter options⌉⌊Product filter options⌉
    Link to image: [https://cld.wthms.co/heC72r](https://cld.wthms.co/heC72r)
 * Could you please share a screenshot of the Products screen, so that I can see
   what you mean?
 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [7 years ago](https://wordpress.org/support/topic/bug-in-sorting-categoriesq/#post-11500538)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Bug in sorting categoriesq’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/bug-in-sorting-categoriesq/#post-11500538)
 * Status: resolved