• Resolved Евгений

    (@mironevgen)


    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

    (@yithemes)

    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 Евгений

    (@mironevgen)

    Thanks for the answer!

    Plugin Author YITHEMES

    (@yithemes)

    Hi @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.