Refresh Sort on change when auto-refresh is disabled

// Note: this is for the OLD sort box, not for Sort facets
add_action( 'wp_head', function() {
  ?>
    <script>
      (function($) {
        $('.facetwp-sort')).on('change', 'select', function() {
          FWP.refresh();
        });
      })(jQuery);
    </script>
  <?php
}, 100 );