Title: incorrect sorting works
Last modified: November 22, 2016

---

# incorrect sorting works

 *  Resolved [Евгений](https://wordpress.org/support/users/mironevgen/)
 * (@mironevgen)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/incorrect-sorting-works/)
 * How to fix the problem so that the sorting numbers is displayed in the wrong 
   order. The text is all right.
    is not true(both shows are now): 1,6 10 12 2 21
   correctly: 1,6 2 10 12 21 Thanks!

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

 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/incorrect-sorting-works/#post-8473119)
 * Hi,
 * WordPress don’t see this information like a integer but like a string.
    In this
   case the order:
 * 1,6
    10 12 2 21
 * it’s correct.
 * However, in ajax product filter plugin you find this filter yith_wcan_get_list_html_terms
   before all item are print. You can use this filter to sort the terms list in 
   a custom way, in example you can use the usort() function of php.
 * Have a nice day
    YITH
 *  Thread Starter [Евгений](https://wordpress.org/support/users/mironevgen/)
 * (@mironevgen)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/incorrect-sorting-works/#post-8480293)
 * Thanks for the answer!
 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/incorrect-sorting-works/#post-8480451)
 * Hi [@mironevgen](https://wordpress.org/support/users/mironevgen/),
 * you’re welcome.
    If you like our products and support please give us a 5-star
   review! It’s very importat for us 🙂 Have a nice day YITH

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

The topic ‘incorrect sorting works’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-ajax-navigation/assets/icon-256x256.gif?
   rev=3129944)
 * [YITH WooCommerce Ajax Product Filter](https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/incorrect-sorting-works/#post-8480451)
 * Status: resolved