• Resolved krzd7

    (@krzd7)


    Hello,

    I’m currently using the following custom javascript in order to sort term filter items:

    $(function() {
      $('ul.gutentor-filter-list').each(function() {
        $(this).children('li').not(':first').sort((a,b) => a.innerText.localeCompare(b.innerText)).appendTo(this);
      });
    });

    I’d be able to remove this code in case you guys decide to add this as a feature.

    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor codersantosh

    (@codersantosh)

    Hello @krzd7 ,

    If I understand correctly, you added the code so that you can order the Post Module Term Filter alphabetically, but it will affect the user input order on

    Advanced Post (Type) => Post Module Header => Single Column => Term Filter.

    I would like to suggest you to select the Taxonomy (Category ) alphabetically on Advanced Post (Type) => Post Module Header => Single Column => Term Filter

    Let us know your thoughts.

    Best regards!

    Thread Starter krzd7

    (@krzd7)

    Yes, the idea is to make it easier to sort it, perhaps adding options like: Disabled (default), Ascending and Descending, so that if Disabled no ordering is applied?

    Depending on the amount of entries it can take a while ordering it manually.

    Thanks.

    Plugin Contributor codersantosh

    (@codersantosh)

    Hello @krzd7 ,

    We appreciate your suggestion but since it is already possible( may sometimes require small extra effort ), we may not add this option for now.

    Best regards!

    Thread Starter krzd7

    (@krzd7)

    Oh ok, no problems.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘(Suggestion) Post Module Term Filter Order’ is closed to new replies.