Reviving an old topic: great script, generally works, but I have encountered one strange case when neither a default sort order nor the script works right.
Test page: https://musicbrainz.org/work/1cba82ba-a6f3-3590-a0c1-b9e742fa742d
By default the sort order appears to be by the date in ascending order, than without the date. But some recordings with assigned date appears at the bottom of the page.
If the @loujin 's script is activated, it is possible to sort by the date in ascending / descending order, but some recordings where the dates are set are still not sorted, they appear as a separate block.
What is so special with those several recordings that they are not sorted?