FacetWP – custom sort event handler

<script>
(function($) {
    $(document).off('change', '.facetwp-sort-select'); // unregister
    $(document).on('change', '.facetwp-sort-select', function() { // register
            FWP.extras.sort = $(this).val();
            //FWP.soft_refresh = true; // remove soft_refresh
            FWP.autoload();
        });
})(jQuery);
</script>