Force sort facet to refresh (inside a “facetwp-template” container)

<?php

// Add to your (child) theme's functions.php

add_action( 'wp_head', function() {
?>
<script>
document.addEventListener('facetwp-refresh', function() {
    delete FWP.frozen_facets['sort_by'];
});
</script>
<?php
}, 100 );