Title: Filter Bug + Temp Solution
Last modified: February 8, 2021

---

# Filter Bug + Temp Solution

 *  Resolved [peterstavrou](https://wordpress.org/support/users/peterstavrou/)
 * (@peterstavrou)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/filter-bug-temp-solution/)
 * There has been a bug in this plugin from 1.3.575 on wards in which causes the
   filters not to work for some users. The issue has to do with the below code, 
   once it’s commented out it works fine.
 * **\public\locate-and-filter-public.js**
 *     ```
       function sort_filter_by_attr(){
           jQuery("ul.category-filters-container").each(function(){
               jQuery(this).html(jQuery(this).children('li').sort(function(a, b){
                   return (jQuery(b).data('sort')) < (jQuery(a).data('sort')) ? 1 : -1;
               }));
           });
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [dgamoni](https://wordpress.org/support/users/dgamoni/)
 * (@dgamoni)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/filter-bug-temp-solution/#post-14080125)
 * Hi [@peterstavrou](https://wordpress.org/support/users/peterstavrou/)
    Thanks
   for bug report it fixed on last version

Viewing 1 replies (of 1 total)

The topic ‘Filter Bug + Temp Solution’ is closed to new replies.

 * ![](https://ps.w.org/locateandfilter/assets/icon-128x128.png?rev=2050267)
 * [LocateAndFilter](https://wordpress.org/plugins/locateandfilter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/locateandfilter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/locateandfilter/)
 * [Active Topics](https://wordpress.org/support/plugin/locateandfilter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/locateandfilter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/locateandfilter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [dgamoni](https://wordpress.org/support/users/dgamoni/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/filter-bug-temp-solution/#post-14080125)
 * Status: resolved